8000 bug #58317 [PhpUnitBridge] Only allow exact matches in expectUserDepr… · symfony/symfony@a11a20e · GitHub
[go: up one dir, main page]

Skip to content

Commit a11a20e

Browse files
committed
bug #58317 [PhpUnitBridge] Only allow exact matches in expectUserDeprecationMessage() (derrabus)
This PR was merged into the 7.2 branch. Discussion ---------- [PhpUnitBridge] Only allow exact matches in expectUserDeprecationMessage() | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix https://github.com/symfony/symfony/pull/54593/files#r1740953366 | License | MIT Commits ------- 1d98fdf Only allow exact matches in expectUserDeprecationMessage()
2 parents ce228d3 + 1d98fdf commit a11a20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/ExpectUserDeprecationMessageTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ trait ExpectUserDeprecationMessageTrait
2020

2121
final protected function expectUserDeprecationMessage(string $expectedUserDeprecationMessage): void
2222
{
23-
$this->expectDeprecation($expectedUserDeprecationMessage);
23+
$this->expectDeprecation(str_replace('%', '%%', $expectedUserDeprecationMessage));
2424
}
2525
}
2626
} else {

0 commit comments

Comments
 (0)
0