smith-carson / prosperworks-sdk

Unofficial (but pretty decent) SDK for the ProsperWorks CRM API
https://smith-carson.github.io/prosperworks-sdk/
MIT License
7 stars 8 forks source link

PSR-4 violations reported by composer #18

Open dinamic opened 4 years ago

dinamic commented 4 years ago

Composer recently started throwing deprecation notices in the console, saying these violations would prevent classes to be autoloaded with Composer 2.0 onwards.

It looks like the casing of the folder name does not match the namespace.

Here is the full message from composer:

Deprecation Notice: Class ProsperWorks\Interfaces\Cache located in ./vendor/smith-carson/prosperworks-sdk/src/interfaces/Cache.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class ProsperWorks\Interfaces\Crypt located in ./vendor/smith-carson/prosperworks-sdk/src/interfaces/Crypt.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
jaydiablo commented 3 years ago

This is fixed in #17 btw (which remains unmerged)

dinamic commented 3 years ago

Crossing fingers the maintainer is going to look into it soon 🤞