<?php class Foo {} class Bar extends Foo {} function foo (Foo ...$params) { var_dump($params); } foo(new Foo, new Bar);
You have javascript disabled. You will not be able to edit any code.