ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.07k stars 327 forks source link

Depraction warning #252

Closed C0kkie closed 4 years ago

C0kkie commented 4 years ago

Hello,

if i install htmlpurifier via composer, i get the followin message

Deprecation Notice: Class HTMLPurifier_Language_en_x_test located in ./vendor/ezyang/htmlpurifier/library/HTMLPurifier/Language/classes/en-x-test.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

roelofr commented 4 years ago

See #246

The file is only used for tests, nothing will break.

alies-dev commented 4 years ago

it's good to know that it will not break anything, but also be great to ret rig of this warning in console

ertuzio commented 4 years ago

See #246

The file is only used for tests, nothing will break.

It's not important for what the file is used... The file doesn't comply with psr-0 autoloading standard and that is the problem.

This should be fixed before the composer v2.0 is out

roelofr commented 4 years ago

This should be fixed before the composer v2.0 is out

Should it? Composer 2 will simply not load it (this project's tests will likely start to fail at that point, but users won't notice)

Besides, I created a fix in #253, but it's still open :disappointed:

ezyang commented 4 years ago

Fixed on master.