From 787c9e59bc0c8c0c4986fdf62c07b266e5c46dfb Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Tue, 12 Mar 2019 11:05:13 +0100 Subject: [PATCH] Avoid warning --- src/AbstractDateTime.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/AbstractDateTime.php b/src/AbstractDateTime.php index 2fc3515..2eac797 100644 --- a/src/AbstractDateTime.php +++ b/src/AbstractDateTime.php @@ -58,12 +58,13 @@ public static function createFromTimestamp(int $timestamp): self } /** - * @param string $format - * @param string $dateTime + * @param string $format + * @param string $dateTime + * @param null|\DateTimeZone $timezone * * @return static */ - public static function createFromFormat($format, $dateTime, \DateTimeZone $timezone = null): self + public static function createFromFormat($format, $dateTime, $timezone = null): self { $class = static::getClass();