<?php class PhpSux {} class Php7SuxToo {} class Cls { public function Fun(PhpSux $a){} public function Fun(Php7SuxToo $a){} } $x = new Cls(); $x->Fun(new PhpSux()); $x->Fun(new Php7Sux());
Standard input is empty
Standard output is empty
PHP Fatal error: Cannot redeclare Cls::Fun() in /home/NHW8PH/prog.php on line 9