Skip to content

Commit b09bc7b

Browse files
authored
fix(parser): parser could find route and routes in config (#72)
Co-authored-by: raphaelloussinian <rloussinian.externe@bedrockstreaming.com>
1 parent e187c68 commit b09bc7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/M6Web/Bundle/LogBridgeBundle/Config/FilterParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function parse(string $name, array $config): Filter
7474
throw new ParseException(sprintf('Undefined "route(s)", "method" or "status" parameter from filter "%s"', $name));
7575
}
7676

77-
if (array_key_exists('route', $config) && array_key_exists('routes', $config)) {
77+
if ((array_key_exists('route', $config) && $config['route'] !== null) && (array_key_exists('routes', $config) && !empty($config['routes']))) {
7878
throw new ParseException(sprintf('You can\'t use both "route" and "routes" parameter from filter "%s"', $name));
7979
}
8080

0 commit comments

Comments
 (0)