Skip to content

Commit f563cf5

Browse files
committed
Ba a bit more cautious
1 parent 235552b commit f563cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct($message, array $trace, $file)
6161
$this->triggeringFile = $file;
6262
if (isset($line['object']) || isset($line['class'])) {
6363
$parsedMsg = @unserialize($this->message);
64-
if ($parsedMsg) {
64+
if ($parsedMsg && isset($parsedMsg['deprecation'])) {
6565
$this->message = $parsedMsg['deprecation'];
6666
$this->originClass = $parsedMsg['class'];
6767
$this->originMethod = $parsedMsg['method'];

0 commit comments

Comments
 (0)