Skip to content

Commit 6499ab4

Browse files
committed
[BUGFIX] Avoid double autoloading of class aliases
1 parent c4f46fe commit 6499ab4

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"Sabberworm\\CSS\\": "src/"
4949
},
5050
"files": [
51-
"src/Rule/Rule.php",
52-
"src/RuleSet/RuleContainer.php"
51+
"class-aliases/Rule/Rule.php",
52+
"class-aliases/RuleSet/RuleContainer.php"
5353
]
5454
},
5555
"autoload-dev": {
@@ -80,9 +80,9 @@
8080
"check:dynamic": [
8181
"@check:tests"
8282
],
83-
"check:php:codesniffer": "phpcs --standard=config/phpcs.xml bin config src tests",
84-
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin config src tests",
85-
"check:php:lint": "parallel-lint bin config src tests",
83+
"check:php:codesniffer": "phpcs --standard=config/phpcs.xml bin class-aliases config src tests",
84+
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin class-aliases config src tests",
85+
"check:php:lint": "parallel-lint bin class-aliases config src tests",
8686
"check:php:rector": "rector process --no-progress-bar --dry-run --config=config/rector.php",
8787
"check:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
8888
"check:static": [
@@ -109,8 +109,8 @@
109109
"@fix:php:codesniffer",
110110
"@fix:php:fixer"
111111
],
112-
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests",
113-
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin config src tests",
112+
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin class-aliases config src tests",
113+
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin class-aliases config src tests",
114114
"fix:php:rector": "rector process --config=config/rector.php",
115115
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline",
116116
"phpstan:clearcache": "phpstan clear-result-cache"

config/phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ parameters:
88

99
paths:
1010
- %currentWorkingDirectory%/bin/
11+
- %currentWorkingDirectory%/class-aliases/
1112
- %currentWorkingDirectory%/src/
1213
- %currentWorkingDirectory%/tests/
1314

0 commit comments

Comments
 (0)