Class ParsedownExtraTest does not comply with psr-0 autoloading standard
drewroberts opened this issue · comments
I receive a composer warning that says the following:
Deprecation Notice: Class ParsedownExtraTest located in ./vendor/erusev/parsedown-extra/test/ParsedownExtraTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/Cellar/composer/1.10.5/bin/composer/src/Composer/Autoload/ClassMapGenerator.php
I got the same notification today.
I am also getting this same notification.
I believe this error only occurs on composer 2.0 which suggests ParseDownExtra does not support 2.0 yet. Can any one confirm if this is the case? This problem is currently breaking our deployments
@toddpadwick For me it also breaks on composer 1.8.0.
Does anyone have a solution so the composer install
does not break?
+1
Add this to composer.json autoload section
"exclude-from-classmap": [
"/vendor/erusev/parsedown-extra/test"
]
Hi @djbusby thanks for providing this fix.
When ParseDownExtra does finally support 2.0, will this snippet cause any potential issues? or is it safe to add your code and essentially 'forget all about it'?