Skip to content

Commit 930eadd

Browse files
Update Isolatable.php
1 parent 71b184d commit 930eadd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Concerns/Isolatable.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ protected function isolatedStatusCode(): int
2525

2626
protected function getIsolateOption(): bool|int
2727
{
28-
if ($code = $this->option(Options::ISOLATED)) {
29-
return intval($code);
30-
}
31-
32-
return false;
28+
return $this->hasIsolateOption() ? (int) $this->option(Options::ISOLATED) : false;
3329
}
3430

3531
protected function hasIsolateOption(): bool

0 commit comments

Comments
 (0)