bug66921.phpt 367 B

123456789101112131415
  1. --TEST--
  2. Bug #66921 - Wrong argument type hint for function intltz_from_date_time_zone
  3. --SKIPIF--
  4. <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
  5. --FILE--
  6. <?php
  7. $f = new ReflectionFunction('intltz_from_date_time_zone');
  8. var_dump($f->getParameters()[0]->getClass());
  9. ?>
  10. --EXPECTF--
  11. object(ReflectionClass)#%d (1) {
  12. ["name"]=>
  13. string(12) "DateTimeZone"
  14. }