Closed ziedjlassi closed 1 year ago
our addRole
method has a phpdoc saying @param string $role
. If your testsuite passes null
to this method, the issue is in your code, not in the bundle. The bundle never passes null
to this method by itself.
Symfony FOSUserBundle versions: 3.1 PHP versions: 8.1 PHPUNIT versions: 9.6.3
Description of the problem including expected versus actual behavior: PHP8.1 : Deprecated: strtoupper()
Steps to reproduce:
Provide logs (if relevant):
Deprecated: strtoupper(): Passing null to parameter #1 (string) of type string is deprecated in vendor/freindsosfymfony/user-bundle/Model/User.php on line 174
This message is repeated at least 150 times in launching phpunit with my application
Can you fix the problem. Thankyou