<?php class Bar { } class Foo { public function __construct( public Bar $bar = new Bar() ) { } } var_dump(new Foo());
You have javascript disabled. You will not be able to edit any code.