[BUGFIX] Suffix all interfaces with Interface
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Updates / PrerequisiteCollection.php
index 3dbbdf1..385ef3f 100644 (file)
@@ -36,7 +36,7 @@ class PrerequisiteCollection implements \IteratorAggregate
     {
         if (
             !($this->prerequisites[$prerequisiteClass] ?? false)
-            && is_a($prerequisiteClass, Prerequisite::class, true)
+            && is_a($prerequisiteClass, PrerequisiteInterface::class, true)
         ) {
             $this->prerequisites[$prerequisiteClass] = GeneralUtility::makeInstance(
                 $prerequisiteClass
@@ -45,7 +45,7 @@ class PrerequisiteCollection implements \IteratorAggregate
     }
 
     /**
-     * @return \ArrayObject|\Traversable|Prerequisite[]
+     * @return \ArrayObject|\Traversable|PrerequisiteInterface[]
      */
     public function getIterator()
     {