[FOLLOWUP][BUGFIX] Add extension precedence
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Package / DependencyResolver.php
index b5492e8..b36f2dd 100644 (file)
@@ -253,7 +253,7 @@ class DependencyResolver {
                foreach ($packageStateConfiguration as $packageKey => $packageConfiguration) {
                        /** @var Package $package */
                        $package = $packageManager->getPackage($packageKey);
-                       if ($package->isPartOfFactoryDefault() || $package->isPartOfMinimalUsableSystem() || strpos($packageConfiguration['packagePath'], self::SYSEXT_FOLDER) === 0) {
+                       if ($package instanceof Package && ($package->isPartOfFactoryDefault() || $package->isPartOfMinimalUsableSystem() || strpos($packageConfiguration['packagePath'], self::SYSEXT_FOLDER) === 0)) {
                                $frameworkPackageKeys[] = $packageKey;
                        }
                }