[PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandler refactoring

(when using runInSeparateProcess)
This commit is contained in:
Laurent VOULLEMIER 2019-05-04 20:28:21 +02:00
parent 8aa02358d6
commit f522729527
2 changed files with 6 additions and 0 deletions

View File

@ -133,6 +133,7 @@ class DeprecationErrorHandler
if ($deprecation->originatesFromAnObject()) {
$class = $deprecation->originatingClass();
$method = $deprecation->originatingMethod();
$msg = $deprecation->getMessage();
if (0 !== error_reporting()) {
$group = 'unsilenced';

View File

@ -133,6 +133,11 @@ class Deprecation
return $this->originMethod;
}
public function getMessage(): string
{
return $this->message;
}
/**
* @param string $utilPrefix
*