Skip to content

Extract the intrinsic closure-parameter blocks into applyIntrinsicArgOverrides() - #6149

Merged
ondrejmirtes merged 1 commit into
2.2.xfrom
intrinsic-arg-overrides
Jul 30, 2026
Merged

Extract the intrinsic closure-parameter blocks into applyIntrinsicArgOverrides()#6149
ondrejmirtes merged 1 commit into
2.2.xfrom
intrinsic-arg-overrides

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

Pure move, extracted from the resolve-type-rewrite-2 branch: the intrinsic closure-parameter blocks leave selectFromArgs() into ParametersAcceptorSelector::applyIntrinsicArgOverrides(), reading argument types through injected getter closures. The method body is byte-identical to the former inline region modulo the getter indirection (verified mechanically), and selectFromArgs() passes $scope-backed getters, so behavior is unchanged.

Full test suite, make phpstan and make cs green; zero analysis-output churn.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7

…rSelector::applyIntrinsicArgOverrides()

A pure move: the four blocks (array_map, array_filter/find, array_walk/
uasort-like, immediately-invoked) leave selectFromArgs() into a named
method that reads argument types through injected getters. Verified
byte-identical to the inline region modulo the getter indirection.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
@ondrejmirtes
ondrejmirtes merged commit a5abc57 into 2.2.x Jul 30, 2026
742 of 745 checks passed
@ondrejmirtes
ondrejmirtes deleted the intrinsic-arg-overrides branch July 30, 2026 15:41
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