Skip to content

Commit

Permalink
Update DateControl.php (#11)
Browse files Browse the repository at this point in the history
add return type for getValue() to be compatible with parent
  • Loading branch information
Ciki authored May 17, 2024
1 parent 303fe4f commit bba734d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Controls/DateControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ protected function getDefaultParser()
};
}


/**
* @return DateTimeImmutable|null
*/
public function getValue()

public function getValue(): ?DateTimeImmutable
{
$val = parent::getValue();
// set the midnight so the limit dates (min & max) pass the :RANGE validation rule
Expand Down

0 comments on commit bba734d

Please sign in to comment.