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:
parent
79e2dacdb2
commit
4f1e8667c3
@ -187,7 +187,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
|
||||
*/
|
||||
public function getDependencies()
|
||||
{
|
||||
return $this->dependsOn;
|
||||
return (array) $this->dependsOn;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user