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 cb4a4c9 commit 7d950afCopy full SHA for 7d950af
src/Detector.php
@@ -25,12 +25,12 @@ public function getEnabler(): Enabler
25
return $this->enabler;
26
}
27
28
- public function isDebugMode(): bool
+ public function isDebugMode(?bool $default = false): bool
29
{
30
return $this->isDebugModeByEnabler()
31
?? $this->isDebugModeByEnv()
32
?? $this->isDebugModeByIp()
33
- ?? false;
+ ?? $default;
34
35
36
/**
@@ -86,8 +86,8 @@ public function isDebugModeByIp(): ?bool
86
return $result ?: null;
87
88
89
- public static function detect(string $tempDir): bool
+ public static function detect(string $tempDir, ?bool $default = false): bool
90
91
- return (new self($tempDir))->isDebugMode();
+ return (new self($tempDir))->isDebugMode($default);
92
93
-}
+}
0 commit comments