From 5aa5080ea7fa54e19f1fd11b68868564881512a8 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 6 May 2024 13:00:47 +0200 Subject: [PATCH] Fix attribute test on newer branches --- Zend/tests/gh10014.phpt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/tests/gh10014.phpt b/Zend/tests/gh10014.phpt index 0870c563133..a4adab84c48 100644 --- a/Zend/tests/gh10014.phpt +++ b/Zend/tests/gh10014.phpt @@ -7,6 +7,8 @@ GH-10014: Incorrect short-circuiting in constant expressions class y { } +(new ReflectionClass(y::class))->getAttributes()[0]->newInstance(); + ?> --EXPECTF-- Warning: Undefined array key 2 in %s on line %d