Skip to content

chore: fix phpstan errors - #8908

Open
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:chore/fix-phpstan-errors
Open

Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:chore/fix-phpstan-errors

Conversation

@Maxcastel

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT

PHPStan fails on 5.0:

  • Type::object() expects class-string|null, string given in the GraphQL tests: symfony/type-info 8.2 now expects a class-string, and these tests use fake class names.
  • No error to ignore is reported on line 238 (and 251) in ApiPlatformExtension: symfony/dependency-injection 8.2 doesn't report this error anymore, but older versions still do, so the ignore moves to phpstan.neon.dist with reportUnmatched: false.
  • Call to an undefined method ObjectMapper::withObjectMapper() in the test added by fix(state): keep ObjectMapper decorated clone #8881: ObjectMapper is declared conditionally and PHPStan only reads the first declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant