1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/property_hooks/bug006.phpt
2024-07-14 11:55:03 +02:00

26 lines
325 B
PHP

--TEST--
Abstract properties correctly track virtualness
--FILE--
<?php
abstract class Y {
abstract public string $prop {
get;
set => "foo";
}
}
class X extends Y {
public string $prop {
get => "bar";
}
}
$x = new X;
$x->prop = 1;
var_dump($x->prop);
?>
--EXPECT--
string(3) "bar"