Skip to content

Commit e7b7686

Browse files
committed
Fix rector errors
1 parent 368bffa commit e7b7686

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

rector.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@
7373
FileCacheStorage::class
7474
)
7575
// paths to refactor; solid alternative to CLI arguments
76-
->withPaths(
77-
[__DIR__ . '/app', __DIR__ . '/system', __DIR__ . '/tests', __DIR__ . '/utils']
78-
)
76+
->withPaths([
77+
__DIR__ . '/app',
78+
__DIR__ . '/system',
79+
__DIR__ . '/tests',
80+
__DIR__ . '/utils/src',
81+
])
7982
// do you need to include constants, class aliases or custom autoloader? files listed will be executed
8083
->withBootstrapFiles([
8184
__DIR__ . '/system/Test/bootstrap.php',
8285
])
8386
->withPHPStanConfigs([
8487
__DIR__ . '/phpstan.neon.dist',
85-
__DIR__ . '/vendor/codeigniter/phpstan-codeigniter/extension.neon',
86-
__DIR__ . '/vendor/phpstan/phpstan-strict-rules/rules.neon',
88+
__DIR__ . '/utils/vendor/codeigniter/phpstan-codeigniter/extension.neon',
89+
__DIR__ . '/utils/vendor/phpstan/phpstan-strict-rules/rules.neon',
8790
])
8891
// is there a file you need to skip?
8992
->withSkip([

utils/Rector/PassStrictParameterToFunctionParameterRector.php renamed to utils/src/Rector/PassStrictParameterToFunctionParameterRector.php

File renamed without changes.

utils/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php renamed to utils/src/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php

File renamed without changes.

utils/Rector/UnderscoreToCamelCaseVariableNameRector.php renamed to utils/src/Rector/UnderscoreToCamelCaseVariableNameRector.php

File renamed without changes.

0 commit comments

Comments
 (0)