Skip to content

Commit

Permalink
Update src/lib/Form/DataTransformer/DateTimePickerTransformer.php
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł Niedzielski <[email protected]>
  • Loading branch information
adamwojs and Steveb-p authored Dec 16, 2024
1 parent 9230e25 commit b9bb63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Form/DataTransformer/DateTimePickerTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function transform($value)

if (!$value instanceof DateTimeInterface) {
throw new TransformationFailedException(
sprintf('Found %s instead of %s', gettype($value), DateTimeInterface::class)
sprintf('Found %s instead of %s', get_debug_type($value), DateTimeInterface::class)
);
}

Expand Down

0 comments on commit b9bb63b

Please sign in to comment.