I am trying to integrate PHP type hinting into a new project. I really like the fact to introduce some type checking for functions. Type hinting works perfectly as long as I am not calling a function with the wrong type. Instead of giving an error message PHP fails silently. The script stops. The page remains white and not even the error logs contain any error entry.
To be more specific, I have the following function:
private static function parseFilterResult(FilterResult $filterResult) {
... DoSomeStuff ...}
If I call the function with a FilterResult object there is no problem. If I call the function with any other object. The silent fail occurs. Did anybody see this behavior before?
Thanks a lot Martin