Skip to content

Exclude PHPUnit / Rector from psr-4 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fliespl opened this issue Mar 16, 2023 · 2 comments
Closed

Exclude PHPUnit / Rector from psr-4 #21

fliespl opened this issue Mar 16, 2023 · 2 comments

Comments

@fliespl
Copy link

fliespl commented Mar 16, 2023

According to author it does not follow psr-4 so should it be defined in composer.json?

sebastianbergmann/phpunit#4168

Rendered warnings when used with ""optimize-autoloader": true," config.

@fliespl
Copy link
Author

fliespl commented Mar 16, 2023

I would propose maybe adding them as such to autoload-dev? Not tested yet

		"classmap": [
			"tools/01_phpunit/vendor/phpunit/phpunit/src",
			"tools/08_rector/vendor/rector/rector/src"
		]

@dimadeush
Copy link
Collaborator

Please do not use optimize-autoloader for the dev environment, see recommendations here - https://getcomposer.org/doc/articles/autoloader-optimization.md#autoloader-optimization and pay your attention to the notes. Regarding classmap you can try but I'm not sure that it will help in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants