Skip to content

PHP8.1 : deprecated function  #3053

@trigardia

Description

@trigardia

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:

  1. Run phpunit with symfony4.4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions