Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit a467bd9

Browse files
committed
Put arguments extractor after decoration to match failures prioriy
1 parent a8cd558 commit a467bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Wrappers/FunctionComponents/FunctionCallHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public function wrap(RuntimeFunctionInterface $function, ColdExecutionContextInt
6565
$spec = $function->getSpec();
6666
$callback = $function->getCallback();
6767

68-
$arguments = $this->arguments_extractor->extract($args, $spec);
69-
7068
if ($spec->getDecorators()) {
7169
// When we have decorators, we need executions context.
7270
// Execution context is simple and abstract way to write advanced functions which relies on existent
@@ -77,6 +75,8 @@ public function wrap(RuntimeFunctionInterface $function, ColdExecutionContextInt
7775
$callback = $this->decorator->decorate($callback, $spec, $exec);
7876
}
7977

78+
$arguments = $this->arguments_extractor->extract($args, $spec);
79+
8080
try {
8181
$ret = $callback(...$arguments);
8282
} catch (Throwable $e) {

0 commit comments

Comments
 (0)