Skip to content

Add regression tests for #13789 and #13802 - #6220

Merged
ondrejmirtes merged 1 commit into
2.2.xfrom
regression-tests-byref-foreach
Aug 13, 2026
Merged

ondrejmirtes merged 1 commit into
2.2.xfrom
regression-tests-byref-foreach

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

Both issues were fixed by #6217 (the by-ref foreach iteratee pinning). The tests are the OP playground snippets pinned with assertType(); with 90514d9 reverted, each fails with exactly the wrong type the issue reports (list<array<mixed>> / array<string, string|null>).

Closes phpstan/phpstan#13789
Closes phpstan/phpstan#13802

🤖 Generated with Claude Code

https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7

Both fixed by the by-ref foreach iteratee pinning (90514d9).

Closes phpstan/phpstan#13789
Closes phpstan/phpstan#13802

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
@ondrejmirtes
ondrejmirtes merged commit b2068f1 into 2.2.x Aug 13, 2026
179 of 180 checks passed
@ondrejmirtes
ondrejmirtes deleted the regression-tests-byref-foreach branch August 13, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant