mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
13 lines
271 B
PHP
13 lines
271 B
PHP
--TEST--
|
|
DateTimeImmutable::modify() with invalid format
|
|
--FILE--
|
|
<?php
|
|
|
|
$datetime = new DateTimeImmutable;
|
|
var_dump($datetime->modify(''));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: DateTimeImmutable::modify(): Failed to parse time string () at position 0 ( in %s on line %d
|
|
bool(false)
|