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 6ffba37 commit 64de10aCopy full SHA for 64de10a
src/Exception/EnvironmentException.php
@@ -42,7 +42,7 @@ class EnvironmentException extends \DomainException
42
*/
43
public static function getErrorMessageFromStatus(
44
#[ExpectedValues(valuesFromClass: Status::class)]
45
- int $status = null
+ ?int $status = null
46
): string {
47
switch ($status ?? Runtime::getStatus()) {
48
case Status::NOT_AVAILABLE:
@@ -66,8 +66,8 @@ public static function getErrorMessageFromStatus(
66
67
public static function fromStatus(
68
69
- int $status = null,
70
- \Throwable $previous = null
+ ?int $status = null,
+ ?\Throwable $previous = null
71
): self {
72
$status ??= Runtime::getStatus();
73
0 commit comments