8000 minor #1139 Switched array() to [] (Arman-Hosseini) · symfony/symfony-standard@2999e7c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 2999e7c

Browse files
committed
minor #1139 Switched array() to [] (Arman-Hosseini)
This PR was merged into the 3.4 branch. Discussion ---------- Switched array() to [] Commits ------- 03640b0 Switched array() to []
2 parents a4de06f + 03640b0 commit 2999e7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
exit("This script cannot be run from the CLI. Run it from a browser.\n");
1515
}
1616

17-
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
17+
if (!in_array(@$_SERVER['REMOTE_ADDR'], [
1818
'127.0.0.1',
1919
'::1',
20-
))) {
20+
])) {
2121
header('HTTP/1.0 403 Forbidden');
2222
exit('This script is only accessible from localhost.');
2323
}

0 commit comments

Comments
 (0)
0