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/asymmetric_visibility/bug004.phpt
Ilija Tovilo 8df557ac42 [RFC] Asymmetric visibility v2 (GH-15063)
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2024-08-27 02:04:48 +02:00

19 lines
287 B
PHP

--TEST--
Missing property initialization for private(set) constructor promoted property
--FILE--
<?php
class T {
public function __construct(
private(set) string $prop,
) {}
}
var_dump(new T('Test'));
?>
--EXPECTF--
object(T)#%d (1) {
["prop"]=>
string(4) "Test"
}