Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Fixed: move tests to PSR-4 autoloading in autoload-dev#58

Closed
qrazi wants to merge 1 commit intoFlowCommunications:masterfrom
qrazi:patch-1
Closed

Fixed: move tests to PSR-4 autoloading in autoload-dev#58
qrazi wants to merge 1 commit intoFlowCommunications:masterfrom
qrazi:patch-1

Conversation

@qrazi
Copy link

@qrazi qrazi commented Sep 17, 2020

Fixes Composer deprecation notice "Deprecation Notice: Class Flow\JSONPath\Test<classname> located in ./vendor/flow/jsonpath/tests/JSONPathArrayAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201"

Test namespace can be autoloaded only for dev. PSR-0 assumes absolute file structure and was expecting tests\Flow\JSONPath\Test\ as the namespace. PSR-4 allows defining more relative anchor points.

Fixes Composer deprecation notice "Deprecation Notice: Class Flow\JSONPath\Test\<classname> located in ./vendor/flow/jsonpath/tests/JSONPathArrayAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201"

Test namespace can be autoloaded only for dev. PSR-0 assumes absolute file structure and was expecting `tests\Flow\JSONPath\Test\` as the namespace. PSR-4 allows defining more relative anchor points.
@martinssipenko
Copy link
Contributor

Duplicate of #51

@qrazi
Copy link
Author

qrazi commented Oct 1, 2020

🤦 My bad, missed the open PR for this

@qrazi qrazi closed this Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants