php Programming Glossary: classwrong
How can I catch a “catchable fatal error” on PHP type hinting? http://stackoverflow.com/questions/2468487/how-can-i-catch-a-catchable-fatal-error-on-php-type-hinting public function method_a ClassB b class ClassB class ClassWrong Correct usage a new ClassA a method_a new ClassB producing error.. new ClassB producing error a new ClassA a method_a new ClassWrong Catchable fatal error Argument 1 passed to ClassA method_a must.. ClassA method_a must be an instance of ClassB instance of ClassWrong given... May I know if it is possible to catch that error since..
|