api-php-client icon indicating copy to clipboard operation
api-php-client copied to clipboard

Add mixed return type for key and current methods

Open DavidePastore opened this issue 7 months ago • 0 comments

This is the warning that I see in the logs when using the client:

User Deprecated: Method "Iterator::key()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Akeneo\Pim\ApiClient\Pagination\ResourceCursor" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Iterator::key()\" might add \"mixed\" as a native return type declaration in the future. Do the same in implementation \"Akeneo\\Pim\\ApiClient\\Pagination\\ResourceCursor\" now to avoid errors or add an explicit @return annotation to suppress this message. at /var/www/app/vendor/symfony/error-handler/DebugClassLoader.php:341)"} {"containerName":""}

This PR enforces the return types of key and current methods.

DavidePastore avatar Jun 10 '25 11:06 DavidePastore