#[AllowDynamicProperties]
class Test {}
// No deprecation warning
$obj = new Test;
$obj->bar = 1;
abstract class A {
function __construct( string $param) {
$this->value = $param;
}
}
class B extends A {
protected $value;
}
class C {
function __construct(string $name, string $value) {
$this->$name = $value
}
}
class C {
function __construct(public string $name, public string $value) {}
}