cesurapp / pd-user

Simple user management system for Symfony 5.
MIT License
24 stars 5 forks source link

fatal error installing bundle #14

Open matteorossi-thespacesm opened 3 years ago

matteorossi-thespacesm commented 3 years ago

Platform: Symfony 4.4 composer require appaydin/pd-user

PHP Fatal error: Declaration of Pd\UserBundle\Security\SwitchUserVoter::voteOnAttribute(string $attribute, $subject, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token) must be compatible with Symfony\Component\Security\Core\Authorization\Voter\Voter::voteOnAttribute($attribute, $subject, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token) in /mnt/sda/www/nts-synchronizer/vendor/appaydin/pd-user/Security/SwitchUserVoter.php on line 50

On symfony 4.4 Pd\UserBundle\Security\SwitchUserVoter::voteOnAttribute signature is SwitchUserVoter::voteOnAttribute$attribute, $subject, TokenInterface $token), without string type hinting.