From b9bb63b27f278805f99f2e8395e98359a8e5f9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Mon, 16 Dec 2024 10:11:26 +0100 Subject: [PATCH] Update src/lib/Form/DataTransformer/DateTimePickerTransformer.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paweł Niedzielski --- src/lib/Form/DataTransformer/DateTimePickerTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Form/DataTransformer/DateTimePickerTransformer.php b/src/lib/Form/DataTransformer/DateTimePickerTransformer.php index cbe49493c4..436ca1e410 100644 --- a/src/lib/Form/DataTransformer/DateTimePickerTransformer.php +++ b/src/lib/Form/DataTransformer/DateTimePickerTransformer.php @@ -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) ); }