<?php class A { public string $foo; } class B extends A { public function __construct() { $this->foo = "whatever"; } } var_dump((new B)->foo);
You have javascript disabled. You will not be able to edit any code.