File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4957,9 +4957,9 @@ PHP_METHOD(DatePeriod, __construct)
4957
4957
}
4958
4958
} else {
4959
4959
/* check initialisation */
4960
- DATE_CHECK_INITIALIZED (Z_PHPDATE_P (start )-> time , DateTimeInterface );
4960
+ DATE_CHECK_INITIALIZED (Z_PHPDATE_P (start )-> time , date_ce_interface );
4961
4961
if (end ) {
4962
- DATE_CHECK_INITIALIZED (Z_PHPDATE_P (end )-> time , DateTimeInterface );
4962
+ DATE_CHECK_INITIALIZED (Z_PHPDATE_P (end )-> time , date_ce_interface );
4963
4963
}
4964
4964
4965
4965
/* init */
Original file line number Diff line number Diff line change 23
23
echo "OK \n" ;
24
24
?>
25
25
--EXPECT--
26
- Error: The DateTimeInterface object has not been correctly initialized by its constructor
27
- Error: The DateTimeInterface object has not been correctly initialized by its constructor
26
+ DateObjectError: Object of type DateTimeInterface has not been correctly initialized by calling parent::__construct() in its constructor
27
+ DateObjectError: Object of type DateTimeInterface has not been correctly initialized by calling parent::__construct() in its constructor
28
28
OK
You can’t perform that action at this time.
0 commit comments