mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-22 18:29:50 +00:00
Added type hint
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user