-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When running unit tests in a PHP 8.1.22/Symfony 6.4 project with php-pp/core installed, I always get a deprecation warning :
PHPUnit 10.5.20 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.22 with Xdebug 3.1.6
PHP Deprecated: Return type of PhpPp\Core\Component\Collection\AbstractCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in {projectPath}/symfony/vendor/php-pp/core/src/Collection/AbstractCollection.php on line 298
Easy fix is to add the expected return for the key() function as stated in the deprecation.
Metadata
Metadata
Assignees
Labels
No labels