Browse Source

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 years ago
parent
commit
4f1e8667c3
1 changed files with 1 additions and 1 deletions
  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;
     }
 
     /**