Repository navigation
Commit bd76e52
Do not inline callee bodies whose method calls use named arguments
The phar build's PHP 7.4 downgrade resolves a method call's named
arguments only on a $this->prop receiver, from the property's native
type. Inlining MutatingScope::enterNamespace() - one return of
$this->scopeFactory->create(..., templateArgumentFrame: ...) - turned
the receiver into $scope->scopeFactory at the call sites, the arguments
stayed named, and the 2.3.x phar failed to parse on PHP 7.4
(NamespaceHandler, PhpClassReflectionExtension). Skip such callees;
named arguments on new/static calls resolve by class name and still
downgrade, so they stay inlinable.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PNSsTrrmeGmkCDA4VR72tt1 parent 9f7d822 commit bd76e52
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
162 | 173 | | |
163 | 174 | | |
164 | 175 | | |
| |||
0 commit comments