Skip to content

Commit 93930f9

Browse files
loks0nclaude
andcommitted
Rename frameLocals to locals
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 01ee74a commit 93930f9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Http/Http.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,17 +720,17 @@ protected function getArguments(Hook $hook, array $values, array $requestParams,
720720
$arguments[$param['order']] = $value;
721721
}
722722

723-
// Frame-local injections come from the dispatch frame, not the
724-
// per-request context. Writing them to context would leak across
725-
// nested execute() calls (e.g. sub-request dispatch).
726-
$frameLocals = [
723+
// Locals come from the dispatch frame, not the per-request context.
724+
// Writing them to context would leak across nested execute() calls
725+
// (e.g. sub-request dispatch).
726+
$locals = [
727727
'route' => $route,
728728
'params' => $values,
729729
];
730730

731731
foreach ($hook->getInjections() as $injection) {
732-
$arguments[$injection['order']] = \array_key_exists($injection['name'], $frameLocals)
733-
? $frameLocals[$injection['name']]
732+
$arguments[$injection['order']] = \array_key_exists($injection['name'], $locals)
733+
? $locals[$injection['name']]
734734
: $this->adapter->context()->get($injection['name']);
735735
}
736736

0 commit comments

Comments
 (0)