From a8197bcc50522a61919bae70d4dbfa93c5584cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Miko=C5=82ajczyk?= Date: Wed, 2 Dec 2020 13:10:16 +0100 Subject: [PATCH] Syntax error fix for PHP 8.0 --- src/Controls/Exclusive/DateTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controls/Exclusive/DateTime.php b/src/Controls/Exclusive/DateTime.php index 9b49a96..da66b4f 100644 --- a/src/Controls/Exclusive/DateTime.php +++ b/src/Controls/Exclusive/DateTime.php @@ -98,9 +98,9 @@ public function render() ], $this->config)); return $this->html()->tag('input', array_merge($this->getOptions(), [ - 'type' => $this->timeOnly ? 'time' : $this->withTime() ? 'datetime' : 'date', + 'type' => $this->timeOnly ? 'time' : ($this->withTime() ? 'datetime' : 'date'), 'name' => $this->name, 'value' => $this->binder()->value($this->key($this->name), $this->value) ])); } -} \ No newline at end of file +}