<?php class Asd { public $x; function __construct($x) { $this->x = $x; } } function test(object $test) { var_export($test); } $a = new Asd(123); test($a);
You have javascript disabled. You will not be able to edit any code.