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 ffb8ae2 commit 65d89dbCopy full SHA for 65d89db
src/FormattedException.php
@@ -63,16 +63,13 @@ public static function formattedConstruct($args)
63
$special = $format;
64
$format = array_shift($args);
65
66
- if (isset($special[0]))
+ for ($i = 0; $i<2; $i++)
67
{
68
- if ($special[0] instanceof \Exception) $previous = $special[0];
69
- elseif (is_int($special[0])) $code = $special[0];
70
- }
71
-
72
- if (isset($special[1]))
73
- {
74
- if ($special[1] instanceof \Exception) $previous = $special[1];
75
- elseif (is_int($special[1])) $code = $special[1];
+ if (isset($special[$i]))
+ {
+ if ($special[$i] instanceof \Exception) $previous = $special[$i];
+ elseif (is_int($special[$i])) $code = $special[$i];
+ }
76
}
77
78
0 commit comments