From d0c1e0a2bcd9a0dd081198536a141ea29ba4f6e2 Mon Sep 17 00:00:00 2001 From: DavidPrevot Date: Wed, 10 Aug 2022 19:02:01 +0200 Subject: [PATCH] Be tolerant about line number pointer (#39) PHP 8.2 related fix. --- tests/Doctrine/Deprecations/DeprecationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Doctrine/Deprecations/DeprecationTest.php b/tests/Doctrine/Deprecations/DeprecationTest.php index e59c146..4d14a31 100644 --- a/tests/Doctrine/Deprecations/DeprecationTest.php +++ b/tests/Doctrine/Deprecations/DeprecationTest.php @@ -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' );