Skip to content

Commit 1336004

Browse files
authored
Merge pull request #406 from MarvinCourcier/DateTimeImmutable-ReturnWillChange
specify Safe\createFromMutable return changing type for php8.2
2 parents ebd255a + dfec7c6 commit 1336004

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/DateTimeImmutable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ public function add($interval): self
232232
* @param \DateTime $dateTime
233233
* @return DateTimeImmutable
234234
*/
235+
#[\ReturnTypeWillChange]
235236
public static function createFromMutable($dateTime): self
236237
{
237238
$date = \DateTimeImmutable::createFromMutable($dateTime);

0 commit comments

Comments
 (0)