File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function run(callable $callable)
6464 return new Result ($ value , $ exception );
6565 }
6666
67- public function handle (Throwable $ exception = null )
67+ public function handle (? Throwable $ exception = null )
6868 {
6969 return $ this ->run (function () use ($ exception ) {
7070 if (!is_null ($ exception )) {
@@ -215,7 +215,7 @@ protected function normalizeRetryWhen($when = null)
215215 return $ when ;
216216 }
217217
218- protected function shouldThrowImmediately (Throwable $ exception = null )
218+ protected function shouldThrowImmediately (? Throwable $ exception = null )
219219 {
220220 if (is_null ($ exception )) {
221221 return false ;
@@ -224,7 +224,7 @@ protected function shouldThrowImmediately(Throwable $exception = null)
224224 return $ this ->protectionsBypassed () || !$ this ->exceptionIsFlaky ($ exception );
225225 }
226226
227- protected function exceptionIsFlaky (Throwable $ exception = null )
227+ protected function exceptionIsFlaky (? Throwable $ exception = null )
228228 {
229229 return is_null ($ this ->flakyExceptions ) || in_array (get_class ($ exception ), $ this ->flakyExceptions , true );
230230 }
You can’t perform that action at this time.
0 commit comments