1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

Use modern array syntax

This commit is contained in:
Adam Wathan
2017-10-17 12:11:46 -04:00
committed by GitHub
parent 360bdabd8e
commit f757e8515b

View File

@@ -24,7 +24,7 @@ function show_valet_404()
*/
function valet_support_wildcard_dns($domain)
{
if (in_array(substr($domain, -7), array('.xip.io', '.nip.io'), true)) {
if (in_array(substr($domain, -7), ['.xip.io', '.nip.io'], true)) {
// support only ip v4 for now
$domainPart = explode('.', $domain);
if (count($domainPart) > 6) {