parsedown icon indicating copy to clipboard operation
parsedown copied to clipboard

Class ParsedownExtraTest does not comply with psr-0 autoloading standard

Open drewroberts opened this issue 4 years ago • 8 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

drewroberts avatar Apr 24 '20 13:04 drewroberts

I got the same notification today.

schonhose avatar May 23 '20 16:05 schonhose

I am also getting this same notification.

Sapper-1cd avatar Jan 01 '21 16:01 Sapper-1cd

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 avatar Feb 05 '21 08:02 toddpadwick

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

stephan-strate avatar Mar 04 '21 08:03 stephan-strate

+1

lloricode avatar Jun 30 '21 05:06 lloricode

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

lloricode avatar Jun 30 '21 06:06 lloricode

Add this to composer.json autoload section

"exclude-from-classmap": [
        "/vendor/erusev/parsedown-extra/test"
]

djbusby avatar Jul 16 '21 17:07 djbusby

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

toddpadwick avatar Jul 23 '21 08:07 toddpadwick