-
-
Notifications
You must be signed in to change notification settings - Fork 160
Closed
Description
Very similar of #295
$ php -v
PHP 8.1.2-1ubuntu2.9 (cli) (built: Oct 19 2022 14:58:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.9, Copyright (c), by Zend Technologies
$date = new \DateTime();
$immutable = \Safe\DateTimeImmutable::createFromInterface($date);
Error: Call to a member function format() on null
/home/yann/workspace/oss/safe/lib/DateTimeImmutable.php:71
I believe we are missing a wrapper around this method too
https://www.php.net/manual/en/datetime.createfrominterface.php
Metadata
Metadata
Assignees
Labels
No labels