Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / annotated-command / src / AnnotatedCommandFactory.php
index abdd97276f5fbd3736399e60c1f62119844ccf0a..9f67ef6480103941598c5842aa75142a32699420 100644 (file)
@@ -184,6 +184,9 @@ class AnnotatedCommandFactory implements AutomaticOptionsProviderInterface
     protected function getCommandInfoListFromCache($commandFileInstance)
     {
         $commandInfoList = [];
+        if (!is_object($commandFileInstance)) {
+            return [];
+        }
         $className = get_class($commandFileInstance);
         if (!$this->getDataStore()->has($className)) {
             return [];