mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 23:03:11 +08:00
Add CorsOptions test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user