We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe3ee0 commit 4162f32Copy full SHA for 4162f32
lib/internal/Magento/Framework/Exception/LocalizedException.php
@@ -26,15 +26,14 @@ class LocalizedException extends \Exception
26
protected $logMessage;
27
28
/**
29
- * Constructor
30
- *
31
* @param \Magento\Framework\Phrase $phrase
32
* @param \Exception $cause
+ * @param int $code
33
*/
34
- public function __construct(Phrase $phrase, \Exception $cause = null)
+ public function __construct(Phrase $phrase, \Exception $cause = null, $code = 0)
35
{
36
$this->phrase = $phrase;
37
- parent::__construct($phrase->render(), 0, $cause);
+ parent::__construct($phrase->render(), intval($code), $cause);
38
}
39
40
0 commit comments