Skip to content

Commit

Permalink
Be tolerant about line number pointer (#39)
Browse files Browse the repository at this point in the history
PHP 8.2 related fix.
  • Loading branch information
DavidPrevot authored Aug 10, 2022
1 parent ebe09b4 commit d0c1e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Doctrine/Deprecations/DeprecationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function testDeprecationIfCalledFromOutside(): void
Deprecation::enableWithTriggerError();

$this->expectErrorHandler(
'Bar::oldFunc() is deprecated, use Bar::newFunc() instead. (Bar.php:16 called by Foo.php:14, https://github.com/doctrine/foo, package doctrine/foo)',
'Bar::oldFunc() is deprecated, use Bar::newFunc() instead. (Bar.php:%d called by Foo.php:14, https://github.com/doctrine/foo, package doctrine/foo)',
'https://github.com/doctrine/foo'
);

Expand Down

0 comments on commit d0c1e0a

Please sign in to comment.