From 90b05b7bb2444639ee22f91a908c9804c440c34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sun, 31 Mar 2024 14:28:47 +0200 Subject: [PATCH] typo (#325) This seems to be an unwanted change introduced in 3.2.1 in 01039d16add7973f06ac54ff3da37e85946d99e1 --- src/Forms/Controls/DateTimeControl.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Forms/Controls/DateTimeControl.php b/src/Forms/Controls/DateTimeControl.php index c1eff5aaa..1881a877e 100644 --- a/src/Forms/Controls/DateTimeControl.php +++ b/src/Forms/Controls/DateTimeControl.php @@ -33,8 +33,11 @@ class DateTimeControl extends BaseControl private string $format = self::FormatObject; - public function __construct(string|Stringable|null $label = null, int $type = self::Date, bool $withSeconds = false) - { + public function __construct( + string|Stringable|null $label = null, + int $type = self::TypeDate, + bool $withSeconds = false, + ) { $this->type = $type; $this->withSeconds = $withSeconds; parent::__construct($label);