<?php class A { public function xx(int $a, float $b) { print_r(func_get_args()); } } class B extends A { public function xx(int $a, float $b) { throw new Error('Not allowed'); } } $a = new A(); $a->xx(1, 2); $b = new B(); $b->xx(1, 2);
You have javascript disabled. You will not be able to edit any code.