Skip to content

Commit

Permalink
fix(parser): parser could find route and routes in config (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: raphaelloussinian <rloussinian.externe@bedrockstreaming.com>
  • Loading branch information
raf262 and raf262 authored Aug 30, 2022
1 parent e187c68 commit b09bc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Bundle/LogBridgeBundle/Config/FilterParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function parse(string $name, array $config): Filter
throw new ParseException(sprintf('Undefined "route(s)", "method" or "status" parameter from filter "%s"', $name));
}

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

Expand Down

0 comments on commit b09bc7b

Please sign in to comment.