Skip to content

Commit

Permalink
Merge pull request #406 from MarvinCourcier/DateTimeImmutable-ReturnW…
Browse files Browse the repository at this point in the history
…illChange

specify Safe\createFromMutable return changing type for php8.2
  • Loading branch information
Kharhamel committed Apr 5, 2023
2 parents ebd255a + dfec7c6 commit 1336004
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DateTimeImmutable.php
Expand Up @@ -232,6 +232,7 @@ public function add($interval): self
* @param \DateTime $dateTime
* @return DateTimeImmutable
*/
#[\ReturnTypeWillChange]
public static function createFromMutable($dateTime): self
{
$date = \DateTimeImmutable::createFromMutable($dateTime);
Expand Down

0 comments on commit 1336004

Please sign in to comment.