Skip to content

Instantly share code, notes, and snippets.

@hax hax/intl-typehint-bug.php
Last active Aug 29, 2015

What would you like to do?
typehint bug of Intl extension in PHP 5.5
$f = new ReflectionFunction('intltz_from_date_time_zone');
var_dump($f->getParameters()[0]->getClass()); // cause ReflectionException in PHP 5.5
run `php --rf intltz_from_date_time_zone` =>
Function [ <internal:intl> function intltz_from_date_time_zone ] {
- Parameters [1] {
Parameter #0 [ <required> IntlDateTimeZone $dateTimeZone ]
The problem is: `IntlDateTimeZone` should be `DateTimeZone`

This comment has been minimized.

Copy link
Owner Author

commented Mar 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.