1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

* PHP-8.3:
  Add test for GH-14109
This commit is contained in:
Ilija Tovilo
2024-05-06 16:03:15 +02:00

View File

@@ -0,0 +1,16 @@
--TEST--
GH-14109: User class extending internal class with attributes
--EXTENSIONS--
zend_test
--FILE--
<?php
class Test extends ZendAttributeTest {}
foreach ((new ReflectionClassConstant(Test::class, 'TEST_CONST'))->getAttributes() as $attribute) {
var_dump($attribute->newInstance());
}
?>
--EXPECTF--
object(ZendTestRepeatableAttribute)#%d (0) {
}
object(ZendTestRepeatableAttribute)#%d (0) {
}