X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FAnnotatedCommandFactory.php;fp=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FAnnotatedCommandFactory.php;h=9f67ef6480103941598c5842aa75142a32699420;hp=abdd97276f5fbd3736399e60c1f62119844ccf0a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php b/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php index abdd97276..9f67ef648 100644 --- a/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php +++ b/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php @@ -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 [];