Skip to content

Commit 73c8f45

Browse files
committed
Use return types
1 parent 4be9347 commit 73c8f45

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/date/php_date.stub.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ public static function __set_state(array $array);
146146
/** @return DateTime */
147147
public static function createFromImmutable(DateTimeImmutable $object);
148148

149-
/** @return DateTime */
150-
public static function createFromInterface(DateTimeInterface $object);
149+
public static function createFromInterface(DateTimeInterface $object): DateTime;
151150

152151
/** @return DateTime|false */
153152
public static function createFromFormat(
@@ -190,8 +189,7 @@ public static function __set_state(array $array);
190189
/** @return DateTimeImmutable */
191190
public static function createFromMutable(DateTime $object);
192191

193-
/** @return DateTimeImmutable */
194-
public static function createFromInterface(DateTimeInterface $object);
192+
public static function createFromInterface(DateTimeInterface $object): DateTimeImmutable;
195193

196194
/** @return DateTimeImmutable|false */
197195
public static function createFromFormat(

0 commit comments

Comments
 (0)