cleanup
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ function db()
|
||||
return $pdo;
|
||||
};
|
||||
|
||||
function findClosestDateSort($array, $targetDate)
|
||||
function findClosestDateSort(array $array, string $targetDate)
|
||||
{
|
||||
if (empty($array) || !preg_match('/^\d{1,2}-\d{1,2}-\d{2}$/', $targetDate)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user