try {
$parameters = parent::match($pathinfo);
} catch (ResourceNotFoundException $e) {
- if ('/' === substr($pathinfo, -1) || !in_array($this->context->getMethod(), array('HEAD', 'GET'))) {
+ if ('/' === substr($pathinfo, -1) || !\in_array($this->context->getMethod(), array('HEAD', 'GET'))) {
throw $e;
}