Skip to content

Fix PHPStan errors with Twig 3.x callable types - #421

Merged
stof merged 1 commit into
KnpLabs:masterfrom
garak:fix-ci-phpstan
Nov 18, 2026
Merged

stof merged 1 commit into
KnpLabs:masterfrom
garak:fix-ci-phpstan

Conversation

@garak

@garak garak commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator
  • Twig now types callables as callable|array{class-string, string}|null.
  • Ternary merged both arrays into one shape PHPStan rejects.
  • Moved callable selection to a typed private helper.

- Twig now types callables as callable|array{class-string, string}|null.
- Ternary merged both arrays into one shape PHPStan rejects.
- Moved callable selection to a typed private helper.
@stof
stof merged commit 65fcac4 into KnpLabs:master Nov 18, 2026
12 checks passed
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