Add CorsOptions test

This commit is contained in:
Alejandro Celaya
2025-07-16 08:29:57 +02:00
parent 1d96cc0279
commit 3369afe22c
3 changed files with 43 additions and 1 deletions

View File

@@ -10,6 +10,11 @@ use function in_array;
use const ARRAY_FILTER_USE_KEY;
/**
* @template T
* @param T $value
* @param T[] $array
*/
function contains(mixed $value, array $array): bool
{
return in_array($value, $array, strict: true);