?
avatar mbabker
mbabker
27 Jun 2020

Run composer install with Composer 1.10.7 (current stable as of this post). There are deprecation notices regarding 3 CMS classes not complying with PSR-4 standards that will not resolve correctly when using Composer 2 (2 are because of inconsistent casing between the FQCN and file path, one is because a class is stuffed into a folder unexpectedly). These issues should be addressed before Composer 2 is released.

avatar mbabker mbabker - open - 27 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jun 2020
avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020
Deprecation Notice: Class Joomla\Tests\Unit\Libraries\Cms\Image\ImageInspector located in ./tests/Unit/Libraries/Cms/Image/stubs/ImageInspector.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Joomla\CMS\Form\Rule\SubformRule located in ./libraries/src/Form/Rule/SubFormRule.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Joomla\CMS\Filesystem\Support\StringController located in ./libraries/src/Filesystem/Support/Stringcontroller.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201


Also (but upstream) 


Deprecation Notice: Class Flow\JSONPath\Test\JSONPathSliceAccessTest located in ./libraries/vendor/flow/jsonpath/tests/JSONPathSliceAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathTest located in ./libraries/vendor/flow/jsonpath/tests/JSONPathTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathTestClass located in ./libraries/vendor/flow/jsonpath/tests/JSONPathTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathDashedIndexTest located in ./libraries/vendor/flow/jsonpath/tests/JSONPathDashedIndexTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathLexerTest located in ./libraries/vendor/flow/jsonpath/tests/JSONPathLexerTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathBenchmarks located in ./libraries/vendor/flow/jsonpath/tests/JSONPathBenchmarks.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathArrayAccessTest located in ./libraries/vendor/flow/jsonpath/tests/JSONPathArrayAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

for Joomla\CMS\Filesystem\Support\StringController tagging #27464

avatar wilsonge
wilsonge - comment - 1 Jul 2020

I only see notices for 2 classes (Subform field and StringController). These are kinda hard to fix because the classes already exist in J3 and it's a casing issue. There's a WIP PR for that here https://github.com/joomla/joomla-cms/pull/27464/files

What's the 3rd - because I'm not getting it on OSX at least

avatar PhilETaylor
PhilETaylor - comment - 1 Jul 2020
Deprecation Notice: Class Joomla\Tests\Unit\Libraries\Cms\Image\ImageInspector located in ./tests/Unit/Libraries/Cms/Image/stubs/ImageInspector.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
avatar PhilETaylor
PhilETaylor - comment - 2 Oct 2020

Issue still valid today (on Mac) All three:

Deprecation Notice: Class Joomla\Tests\Unit\Libraries\Cms\Image\ImageInspector located in ./tests/Unit/Libraries/Cms/Image/stubs/ImageInspector.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Joomla\CMS\Form\Rule\SubformRule located in ./libraries/src/Form/Rule/SubFormRule.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Joomla\CMS\Filesystem\Support\StringController located in ./libraries/src/Filesystem/Support/Stringcontroller.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
avatar brianteeman
brianteeman - comment - 20 Dec 2020

Not getting any Deprecation Notices today 20 Dec

avatar wilsonge
wilsonge - comment - 20 Dec 2020

I could reproduce two days ago. Haven’t tried today

avatar wilsonge wilsonge - change - 20 Dec 2020
Labels Added: ?
avatar wilsonge wilsonge - labeled - 20 Dec 2020
avatar PhilETaylor
PhilETaylor - comment - 21 Dec 2020

If you use Composer 2.0.8 I still get them today

Screenshot 2020-12-21 at 11 24 27

Using Composer 1.10.19 I get a slightly different message, but same root issues

Screenshot 2020-12-21 at 11 25 30

avatar bembelimen bembelimen - change - 30 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-30 00:27:19
Closed_By bembelimen
avatar bembelimen bembelimen - close - 30 Dec 2020
avatar wilsonge wilsonge - change - 17 Feb 2021
Labels Removed: ?
avatar wilsonge wilsonge - unlabeled - 17 Feb 2021

Add a Comment

Login with GitHub to post a comment