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