Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Utils / AnnotationValidator.php
index 9f9689cfbd053c8445a1e0d29aacee8b9864c526..9e46c4c42f3f6f6ebc95feca6424de38d0fe39ea 100644 (file)
@@ -107,7 +107,9 @@ class AnnotationValidator
     protected function extractDependencies($annotation)
     {
         $dependencies = [];
-        if (array_key_exists('extension', $annotation)) {
+        $extension = array_key_exists('extension', $annotation) ? $annotation['extension'] : null;
+        $extensionType = array_key_exists('extensionType', $annotation) ? $annotation['extensionType'] : null;
+        if ($extension && $extensionType != 'library') {
             $dependencies[] = $annotation['extension'];
         }
         if (array_key_exists('dependencies', $annotation)) {