This commit is contained in:
Fabien Potencier 2018-05-11 17:48:19 +02:00
parent 07d25709a9
commit 8072eed4bf
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class NotFoundActivationStrategy extends ErrorLevelActivationStrategy
$isActivated
&& isset($record['context']['exception'])
&& $record['context']['exception'] instanceof HttpException
&& $record['context']['exception']->getStatusCode() == 404
&& 404 == $record['context']['exception']->getStatusCode()
&& ($request = $this->requestStack->getMasterRequest())
) {
return !preg_match($this->blacklist, $request->getPathInfo());

View File

@ -100,7 +100,7 @@ class Command
array_unshift($this->bits, $bit);
foreach ($this->labels as $label => $index) {
$this->labels[$label] += 1;
++$this->labels[$label];
}
return $this;