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

Commit d935e50

Browse files
committed
minor #1085 Minor tweaks in app_dev.php to cover some PHP-CS-Fixer rules (bocharsky-bw)
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes #1085). Discussion ---------- Minor tweaks in app_dev.php to cover some PHP-CS-Fixer rules Commits ------- 8488238 Minor tweaks in app_dev.php to cover some PHP-CS-Fixer rules
2 parents 74484e5 + 8488238 commit d935e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/app_dev.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Symfony\Component\HttpFoundation\Request;
43
use Symfony\Component\Debug\Debug;
4+
use Symfony\Component\HttpFoundation\Request;
55

66
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
77
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
@@ -12,7 +12,7 @@
1212
// Feel free to remove this, extend it, or make something more sophisticated.
1313
if (isset($_SERVER['HTTP_CLIENT_IP'])
1414
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
15-
|| !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) || PHP_SAPI === 'cli-server')
15+
|| !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'), true) || PHP_SAPI === 'cli-server')
1616
) {
1717
header('HTTP/1.0 403 Forbidden');
1818
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');

0 commit comments

Comments
 (0)