mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-04-22 19:02:12 +00:00
Added type hint
This commit is contained in:
parent
043343e7aa
commit
c6892caf29
@ -6,7 +6,7 @@ use DateTime;
|
||||
|
||||
class DateInput extends AbstractInput
|
||||
{
|
||||
public function setOption($name, $value)
|
||||
public function setOption(string $name, $value)
|
||||
{
|
||||
if ($name === "value") {
|
||||
$this->attributes["value"] = (new DateTime($value))->format('Y-m-d');
|
||||
|
Loading…
x
Reference in New Issue
Block a user