src/Identity/Resolver/Context/Identity/PersonaResolver.php
public function isMatch(string $variable, array &$matches = []): bool
    {
        $token = $this->tokenStorage->getToken();

        if (!$token) {
            return false;
        }

        if (!preg_match(static::PATTERN, $variable, $matches)) {
            return false;
        }

        return true;
    }
public function isMatch(string $variable, array &$matches = []): bool
    {
        $token = $this->tokenStorage->getToken();

        if (!$token) {
            return false;
        }

        if (!preg_match(static::PATTERN, $variable, $matches)) {
            return false;
        }

        return true;
    }
{@inheritdoc}