Skip to content

Fix PHPunit matrix for nette/forms <3.3 - #2

Merged
WerySkok merged 2 commits into
mainfrom
fix/forms-matrix
Oct 28, 2026
Merged

WerySkok merged 2 commits into
mainfrom
fix/forms-matrix

Conversation

@WerySkok

Copy link
Copy Markdown
Member

After the nette/forms 3.3 visitor refactor, dynamic form access no longer leaves an internal Runtime::item() call, so the old item()/template-type expectations are stale for Latte 3.1 + nette/forms <3.3 and Latte 3.0.

Verified testForms on:

  • Latte 3.1.7 + nette/forms 3.2.9
  • Latte 3.0.27 + nette/forms 3.2.9

Main itself is untouched.

The visitor now rewrites dynamic form access for older nette/forms too, so
the internal Runtime::item() call and its template-type error are gone.
PHPStan 2.3 reports the internal Runtime::item() template-type errors on
unnamed forms; PHPStan 2.1 does not. Keep the expectations for the newer
analysis only.
@WerySkok
WerySkok merged commit 94dd495 into main Oct 28, 2026
49 checks passed
@WerySkok
WerySkok deleted the fix/forms-matrix branch October 28, 2026 14:04
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