From 675d5feb22fcde6ece7736cb2c51efe304b1d281 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Thu, 10 Nov 2022 08:18:42 +0800 Subject: [PATCH] Set raw output when using `--execute` (#63) * Set raw output when using `--execute` * Update tests.yaml * Format Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/Foundation/AsyncQueue/ClosureJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Foundation/AsyncQueue/ClosureJob.php b/src/Foundation/AsyncQueue/ClosureJob.php index fe96aea..63f2b6f 100644 --- a/src/Foundation/AsyncQueue/ClosureJob.php +++ b/src/Foundation/AsyncQueue/ClosureJob.php @@ -101,7 +101,7 @@ protected function getInjections(array $definitions, string $callableName, array } elseif ($definition->allowsNull()) { $injections[] = null; } else { - throw new \InvalidArgumentException("Parameter '{$definition->getMeta('name')}' " + throw new GlobalInvalidArgumentException("Parameter '{$definition->getMeta('name')}' " . "of {$callableName} should not be null"); } } else {