summaryrefslogtreecommitdiffstats
path: root/php-doctrine-deprecations-php82.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-doctrine-deprecations-php82.patch')
-rw-r--r--php-doctrine-deprecations-php82.patch23
1 files changed, 23 insertions, 0 deletions
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 <david@tilapin.org>
+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'
+ );
+