Skip to content

Problem with PHPStan #2101

@TristanPouliquen

Description

@TristanPouliquen

API Platform version(s) affected: 2.6.7

Description
After updating dependencies to last version, we get these errors in our PHPStan installation:

ParseError (syntax error, unexpected 'static' (T_STATIC)) thrown        
         while looking for class ApiPlatform\Core\Util\ClientTrait80.            
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols   

The PHPStan message isn't very clear, so I'm not sure of what causes the issue as the code inside ClientTrait80 seems fine.

Or is it the static return type on the withOptions method that raises such an alarm?

We are running under PHP7.4

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