<?php class A { public function __construct($a) {} } class B extends A { public function __construct(DateTime $dt) {} } var_dump(new B(new DateTime));
You have javascript disabled. You will not be able to edit any code.