src/Core/Doctrine/Annotation/Scanner/FileInspector.php
private function parseNamespace($tokens): ?string
    {
        $namespace = null;
        foreach ($tokens as $offset => $offsetValue) {
            if (!\is_array($tokens[$offset])) {
                continue;
            }
            if (\T_NAMESPACE === $tokens[$offset][0]) {
                $offset++;

                return $this->parseNamespaceString($tokens, $offset);
            }
        }

        return $namespace;
    }
private function parseNamespace($tokens): ?string
    {
        $namespace = null;
        foreach ($tokens as $offset => $offsetValue) {
            if (!\is_array($tokens[$offset])) {
                continue;
            }
            if (\T_NAMESPACE === $tokens[$offset][0]) {
                $offset++;

                return $this->parseNamespaceString($tokens, $offset);
            }
        }

        return $namespace;
    }
@param array $tokens

@return string|null