erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.77k stars 1.12k forks source link

Class ParsedownExtraTest does not comply with psr-0 autoloading standard #763

Open drewroberts opened 4 years ago

drewroberts commented 4 years ago

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
schonhose commented 4 years ago

I got the same notification today.

Sapper-1cd commented 3 years ago

I am also getting this same notification.

toddpadwick commented 3 years ago

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

stephan-strate commented 3 years ago

@toddpadwick For me it also breaks on composer 1.8.0. Does anyone have a solution so the composer install does not break?

lloricode commented 3 years ago

+1

lloricode commented 3 years ago

https://github.com/erusev/parsedown-extra/issues/150

djbusby commented 3 years ago

Add this to composer.json autoload section

"exclude-from-classmap": [
        "/vendor/erusev/parsedown-extra/test"
]
toddpadwick commented 3 years ago

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'?