blob: ccc729bb2c67151aeb6fb3e5e1917f194fbf9653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'
);
|