bug55407.phpt 407 B

1234567891011121314151617
  1. --TEST--
  2. Bug #55407 (Impossible to prototype DateTime::createFromFormat)
  3. --INI--
  4. error_reporting=-1
  5. --FILE--
  6. <?php namespace melt\core;
  7. class DateTime extends \DateTime {
  8. public static function createFromFormat($format, $time, \DateTimeZone $timezone = null): DateTime|false {
  9. return new DateTime(parent::createFromFormat($format, $time, $timezone));
  10. }
  11. }
  12. echo "DONE\n";
  13. ?>
  14. --EXPECT--
  15. DONE