Skip to content

Commit af66819

Browse files
cs fix
1 parent abeed67 commit af66819

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

DependencyInjection/SecurityExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,7 @@ private function createAuthorization(array $config, ContainerBuilder $container)
196196
{
197197
foreach ($config['access_control'] as $access) {
198198
if (isset($access['request_matcher'])) {
199-
if (
200-
isset($access['path']) || isset($access['host']) || isset($access['port'])
201-
|| [] !== $access['ips'] || [] !== $access['methods']
202-
) {
199+
if ($access['path'] || $access['host'] || $access['port'] || $access['ips'] || $access['methods']) {
203200
throw new InvalidConfigurationException('The "request_matcher" option should not be specified alongside other options. Consider integrating your constraints inside your RequestMatcher directly.');
204201
}
205202
$matcher = new Reference($access['request_matcher']);

0 commit comments

Comments
 (0)