Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
php manual wrote:Failing to satisfy the type hint results in a catchable fatal error.
I can't seem to make this work. When a type-hinting error is generated inside a try-catch block, the exception is not caught. Instead a E_RECOVERABLE_ERROR is generated. PHP 5.2.3.