mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 15:23:12 +08:00
Replaced in_array by contains
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
namespace Shlinkio\Shlink\Common;
|
||||
|
||||
use function getenv;
|
||||
use function in_array;
|
||||
use function strtolower;
|
||||
use function trim;
|
||||
|
||||
@@ -43,5 +44,5 @@ function env($key, $default = null)
|
||||
|
||||
function contains($needle, array $haystack)
|
||||
{
|
||||
return \in_array($needle, $haystack, true);
|
||||
return in_array($needle, $haystack, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user