I am trying to mock an instance of Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken which, since Symfony 4.3 requires an array as a parameter for its unserialize method. commit
When running phpspec I get the following message:
PHP Fatal error: Declaration of Double\Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken\P711::__unserialize() must be compatible with Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken::__unserialize(array $data): void in /var/www/html/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php(49) : eval()'d code on line 2
I am trying to mock an instance of
Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken
which, since Symfony 4.3 requires anarray
as a parameter for its unserialize method. commitWhen running
phpspec
I get the following message: