private $condition = '';
/**
- * @var null|CompiledRoute
+ * @var CompiledRoute|null
*/
private $compiled;
*/
public function hasScheme($scheme)
{
- return in_array(strtolower($scheme), $this->schemes, true);
+ return \in_array(strtolower($scheme), $this->schemes, true);
}
/**
private function sanitizeRequirement($key, $regex)
{
- if (!is_string($regex)) {
+ if (!\is_string($regex)) {
throw new \InvalidArgumentException(sprintf('Routing requirement for "%s" must be a string.', $key));
}