churn-php icon indicating copy to clipboard operation
churn-php copied to clipboard

Exclude assets from classmaps

Open villfa opened this issue 8 months ago • 1 comments

composer dump-autoload --optimize --strict-psr --no-scripts failed with this message:

Class Acme\Bar located in ./tests/Unit/Assets/Bar.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Baz located in ./tests/Unit/Assets/Baz.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Foo located in ./tests/Unit/Assets/Foo.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Qux located in ./tests/Unit/Assets/Qux.inc does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Deep2 located in ./tests/Unit/Assets2/DeepAssets/Deep2.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Deep located in ./tests/Unit/Assets2/DeepAssets/Deep.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Different located in ./tests/Unit/Assets2/DeepAssets/Different.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Foo2 located in ./tests/Unit/Assets2/Foo2.php does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.
Class Acme\Qux2 located in ./tests/Unit/Assets2/Qux2.inc does not comply with psr-4 autoloading standard (rule: Churn\Tests\ => ./tests). Skipping.

Psalm also failed with this error:

Uncaught TypeError: PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given, called in /home/runner/work/churn-php/churn-php/vendor-bin/psalm/vendor/vimeo/psalm/src/Psalm/Internal/Provider/StatementsProvider.php on line 402 and defined in /home/runner/work/churn-php/churn-php/vendor/bin/.phpunit/phpunit-9.6-1/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php:38

villfa avatar Jun 20 '24 14:06 villfa