forked from api-platform/core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid php8 only syntax when possible
This resulted in phpstan to fail if the active PHP version is <8.0: Internal error: syntax error, unexpected 'static' (T_STATIC) In case a project depending on api-platform/core would use ClientTrait directly, or indirectly, phpstan would try to parse it and fail with the above syntax error. Move the type declarations into a comment instead. Fixes api-platform#4614
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters