mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
27 lines
362 B
PHP
27 lines
362 B
PHP
--TEST--
|
|
GH-19053: Incorrect properties_info_table for abstract properties
|
|
--FILE--
|
|
<?php
|
|
|
|
abstract class GP {
|
|
public abstract mixed $foo { get; }
|
|
}
|
|
|
|
class P extends GP {
|
|
public mixed $foo = 1;
|
|
}
|
|
|
|
class C extends P {
|
|
public mixed $foo { get => 2; }
|
|
}
|
|
|
|
$c = new C;
|
|
var_dump($c);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
object(C)#%d (0) {
|
|
["foo"]=>
|
|
uninitialized(mixed)
|
|
}
|