8000 bug #31382 [PhpunitBridge] Fix not unserialized logs after Deprecatio… · symfony/symfony@c315767 · GitHub
[go: up one dir, main page]

Skip to content

Commit c315767

Browse files
bug #31382 [PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandler refacto (l-vo)
This PR was merged into the 4.3-dev branch. Discussion ---------- [PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandler refacto | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | During the refactoring for #29211 , it seems a little bug was introduced. When using runInSeparateProcess, deprecation message isn't unserialized anymore. Commits ------- f522729 [PhpunitBridge] Fix not unserialized logs after DeprecationErrorHandler refactoring
2 parents b224a32 + f522729 commit c315767

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Bridge 8000 /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