Skip to content

Conversation

@spawnia
Copy link
Owner

@spawnia spawnia commented Jan 20, 2026

Summary

  • Add @phpstan-ignore comments with specific error codes to suppress errors that arise from type differences between graphql-php 14 and 15
  • Fix AssocJsonValue type alias to correctly represent json_decode with assoc=true (returns arrays, not stdClass)

Test plan

  • make stan passes locally
  • GitHub Actions CI passes on all dependency versions

🤖 Generated with Claude Code

Add @phpstan-ignore comments with specific error codes to suppress
errors that arise from type differences between graphql-php 14 and 15:
- function.alreadyNarrowedType, notIdentical.alwaysTrue for assert()s
- offsetAccess.invalidOffset for mixed array key access on $namedType->name

Also fix AssocJsonValue type alias to correctly represent json_decode
with assoc=true (returns arrays, not stdClass).

Co-Authored-By: Claude <noreply@anthropic.com>
@spawnia spawnia marked this pull request as ready for review January 20, 2026 08:01
@spawnia spawnia merged commit c26fc3a into master Jan 20, 2026
30 checks passed
@spawnia spawnia deleted the fix-phpstan-errors branch January 20, 2026 08:01
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.

2 participants