mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Fix the array_find call
This commit is contained in:
parent
eba1eb2b26
commit
b292e10c13
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ if (!function_exists('array_find')) {
|
||||||
throw new InvalidArgumentException('No filter function provided.');
|
throw new InvalidArgumentException('No filter function provided.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_filter($array, $callback)[0] ?? null;
|
return array_values(array_filter($array, $callback))[0] ?? null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue