Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Composer 2.0 deprecation warning #55

Open
ramunasd opened this issue Apr 24, 2020 · 0 comments · May be fixed by #69
Open

Composer 2.0 deprecation warning #55

ramunasd opened this issue Apr 24, 2020 · 0 comments · May be fixed by #69

Comments

@ramunasd
Copy link
Contributor

Deprecation Notice: Class Aerospike\GeoJSON located in ./vendor/aerospike/aerospike-client-php/src/GeoJSON/GeoJSON.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

PHP 7.3
Aerospike client 7.5.2
Composer 10.5

Can be reproduced with

composer require aerospike/aerospike-client-php ^7.5
composer install --optimize-autoloader

Autoloader optimization is common practice for high load web sites as it allows completely bypass class name conversion to real path.

According to autoload config this class must be one level higher, just like another class Aerospike\Bytes

@ramunasd ramunasd linked a pull request Jan 24, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant