note 93405 deleted from language.oop5.typehinting by nikic
| From: | nikic@php.net | Date: | Sun, 01 Nov 2020 21:50:32 +0000 |
| Subject: | note 93405 deleted from language.oop5.typehinting by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215688@lists.php.net to get a copy of this message | ||
Note Submitter: dpariyskiy at netatwork dot com
----
Daniel, thank you for the type hinting class. Very useful.
For anyone having a problem where php isn't setting Daniel's error handler, as was the
case for me, try changing initializeHandler function to the following:
<?php
public static function initializeHandler()
{
set_error_handler(array('Typehint','handleTypehint'));
return TRUE;
}
?>
Hope this helps,
--Dmitriy