8000 [PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandl… · symfony/symfony@f522729 · GitHub
[go: up one dir, main page]

Skip to content

Commit f522729

Browse files
committed
[PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandler refactoring
(when using runInSeparateProcess)
1 parent 8aa0235 commit f522729

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function handleError($type, $msg, $file, $line, $context = [])
133133
if ($deprecation->originatesFromAnObject()) {
134134
$class = $deprecation->originatingClass();
135135
$method = $deprecation->originatingMethod();
136+
$msg = $deprecation->getMessage();
136137

137138
if (0 !== error_reporting()) {
138139
$group = 'unsilenced';

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ public function originatingMethod()
133133
return $this->originMethod;
134134
}
135135

136+
public function getMessage(): string
137+
{
138+
return $this->message;
139+
}
140+
136141
/**
137142
* @param string $utilPrefix
138143
*

0 commit comments

Comments
 (0)
0