This commit is contained in:
2026-08-28 12:33:02 +03:00
parent e504de8705
commit cc89c4a10c
11 changed files with 16 additions and 63 deletions
+1 -1
View File
@@ -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;