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)
This commit is contained in:
Daniel Rudolf 2015-10-04 22:30:35 +02:00
parent 79e2dacdb2
commit 4f1e8667c3

View file

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