瀏覽代碼

Cast AbstractPicoPlugin::$dependsOn to array

Plugin devs could come up with the idea of setting AbstractPicoPlugin::$dependsOn to a string (single dependency) or null (no dependencies)
Daniel Rudolf 9 年之前
父節點
當前提交
4f1e8667c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/AbstractPicoPlugin.php

+ 1 - 1
lib/AbstractPicoPlugin.php

@@ -187,7 +187,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
      */
     public function getDependencies()
     {
-        return $this->dependsOn;
+        return (array) $this->dependsOn;
     }
 
     /**