<?php public class Foo { public function __constructor(public string $foo, public int $bar)(} } $a = ['bar' =>15, 'foo' => 'daaaa']; $b = new Foo(...$a); var_dump($b);
You have javascript disabled. You will not be able to edit any code.