Language: PHP
Label: vulnerable
CWE: CWE-1103 \u2014 Use of Platform-Dependent Third Party Components
The product relies on third-party components that do
					not provide equivalent functionality across all desirable
					platforms.

Code:
        foreach ([$this->classes, $this->interfaces, $this->traits, $this->enums] as $definitions) {
            if (array_key_exists($fqdn, $definitions)) {
                $definition = $definitions[$fqdn];
                if (is_iterable($definition['context']->annotations)) {
                    foreach (array_reverse($definition['context']->annotations) as $annotation) {
                        if ($annotation->isRoot(OA\Schema::class) && !$annotation->_context->is('generated')) {
                            return $annotation;
                        }
                    }
                }
            }
        }