Skip to content

Fix PHPStan errors, add baseline for denormalize covariance#43

Merged
sylfabre merged 3 commits intomainfrom
fix/phpstan-rector
Feb 14, 2026
Merged

Fix PHPStan errors, add baseline for denormalize covariance#43
sylfabre merged 3 commits intomainfrom
fix/phpstan-rector

Conversation

@sylfabre
Copy link
Contributor

Summary

  • Fixed getFilters() return type annotation (list<TwigFilter>)
  • Added PHPStan baseline for denormalize() return type covariance (Symfony interface edge case)
  • Note: Rector data provider static changes deferred until validator-bundle v2.39.2 is released

Test plan

  • Rector clean (after validator-bundle update)
  • PHPStan 0 errors (1 baselined)
  • PHPUnit passes (42 tests, 57 assertions)

🤖 Generated with Claude Code

sylfabre and others added 3 commits February 13, 2026 17:24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

@sylfabre sylfabre merged commit d403f6b into main Feb 14, 2026
4 of 6 checks passed
@sylfabre sylfabre deleted the fix/phpstan-rector branch February 14, 2026 15:49
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