Skip to content

Commit

Permalink
fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 10, 2024
1 parent 331f0d5 commit 4f34c9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"chevere/action": "^1.0.x-dev",
"chevere/data-structure": "^1.0.1",
"chevere/parameter": "^1.0.0",
"chevere/regex": "^1.0",
"chevere/regex": "^1.0.1",
"ramsey/uuid": "^4.7"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use function Amp\Promise\all;
use function Amp\Promise\wait;
use function Chevere\Message\message;
use function Chevere\Parameter\cast;

final class Runner implements RunnerInterface
{
Expand Down Expand Up @@ -108,7 +109,7 @@ private function getActionResponse(
array $arguments
): CastInterface {
try {
return $action->__invoke(...$arguments);
return cast($action->__invoke(...$arguments));
} catch (Throwable $e) { // @codeCoverageIgnoreStart
$actionTrace = $e->getTrace()[1] ?? [];
$fileLine = strtr('%file%:%line%', [
Expand Down

0 comments on commit 4f34c9a

Please sign in to comment.