Skip to content

Commit 06d9e28

Browse files
laravel-shiftgithub-actions[bot]
authored andcommitted
Fix code styling [ci skip]
1 parent dc751c8 commit 06d9e28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Flaky.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)