From e3ebb820a98efb061a86995ae3706c6f0bdc9d82 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 20 Apr 2023 14:46:10 +0200 Subject: add upstream patch for test suite with PHP 8.2 #2171642 --- php-doctrine-deprecations-php82.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 php-doctrine-deprecations-php82.patch (limited to 'php-doctrine-deprecations-php82.patch') diff --git a/php-doctrine-deprecations-php82.patch b/php-doctrine-deprecations-php82.patch new file mode 100644 index 0000000..ccc729b --- /dev/null +++ b/php-doctrine-deprecations-php82.patch @@ -0,0 +1,23 @@ +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' + ); + -- cgit