<?php trait X{ function tryA(A $a){ $this->test($a); } function test(A $a){} // can't solve signatures incompatibility... } trait Y{ function tryB(B $b){ $this->test($b); } function test(B $b){} // when arguments are different... } class LOL{ use X, Y{ X::test insteadof Y; // this doesn't actually solve anything... } } class A{} class B{} $x = new LOL; $x->tryA(new A); $x->tryB(new B);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`