We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05991f2 commit 61e0e2aCopy full SHA for 61e0e2a
src/Concerns/Isolatable.php
@@ -26,7 +26,11 @@ protected function isolationMutex(): Mutex
26
27
protected function isolatedStatusCode(): int
28
{
29
- return (int) (is_numeric($this->getIsolateOption()) ? $this->getIsolateOption() : self::SUCCESS);
+ if ($isolate = $this->getIsolateOption()) {
30
+ return is_numeric($isolate) ? $isolate : self::SUCCESS;
31
+ }
32
+
33
+ return self::SUCCESS;
34
}
35
36
protected function getIsolateOption(): int|bool
0 commit comments