Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Dec 6, 2021
1 parent 798f94b commit 590c916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Casts/DateTimeInterfaceCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function cast(DataProperty $property, mixed $value): DateTimeInterface |
}

if ($datetime === false) {
/** @psalm-suppress InvalidCast,InvalidArgument */
throw CannotCastDate::create($format, $type, $value);
}

Expand Down

0 comments on commit 590c916

Please sign in to comment.