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)
pico-3.0-alpha
Daniel Rudolf 10 years ago
parent 79e2dacdb2
commit 4f1e8667c3
  1. 2
      lib/AbstractPicoPlugin.php

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

Loading…
Cancel
Save