j0k3r / php-readability

A fork of https://bitbucket.org/fivefilters/php-readability
Apache License 2.0
168 stars 36 forks source link

Composer printing warning with php-html5lib #56

Closed jtojnar closed 4 years ago

jtojnar commented 4 years ago

It only seems to be problem for php-html5lib tests but the warning is still annoying:

Deprecation Notice: Class HTML5Lib\Tests\TokenizerHarness located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\PositionTestableTokenizer located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerPositionTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\TokenizerTestOfPosition located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TokenizerPositionTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class HTML5Lib\Tests\TreeBuilderHarness located in ./vendor/electrolinux/php-html5lib/tests/HTML5Lib/Tests/TreeBuilderTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///nix/store/1x099mxa4wk77505ryyl4d3j81y3v7zr-php-composer-1.10.6/libexec/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201

Perhaps we should try to find a maintained alternative.

j0k3r commented 4 years ago

https://github.com/Masterminds/html5-php Might be a good candidate. It’s used by Symfony