Skip to content

Commit

Permalink
Use self::TypeDate as default for $type, not self::Date
Browse files Browse the repository at this point in the history
This seems to be an unwanted change introduced in 3.2.1 in 01039d1
  • Loading branch information
spaze committed Mar 30, 2024
1 parent bedb0ea commit 45da226
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Forms/Controls/DateTimeControl.php
Expand Up @@ -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);
Expand Down

0 comments on commit 45da226

Please sign in to comment.