PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for ext/date/tests/bug55407.phpt ('Bug #55407 (Impossible to prototype DateTime::createFromFormat)')

Script

1: <?php namespace melt\core;
2:
3: class 
DateTime extends \DateTime {
4:     public static function 
createFromFormat($format$timeDateTimeZone $timezone null) {
5:         return new 
DateTime(parent::createFromFormat($format$time$timezone));
6:     }
7: }
8:
9: echo 
"DONE\n";
10:
?>
11:

Expected

DONE

Output

Warning: Declaration of melt\core\DateTime::createFromFormat($format, $time, melt\core\DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /var/php_gcov/PHP_7_0/ext/date/tests/bug55407.php on line 7
DONE

Diff

001+ Warning: Declaration of melt\core\DateTime::createFromFormat($format, $time, melt\core\DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /var/php_gcov/PHP_7_0/ext/date/tests/bug55407.php on line 7

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (5 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.