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
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
|
|||
*/
|
||||
public function getDependencies()
|
||||
{
|
||||
return $this->dependsOn;
|
||||
return (array) $this->dependsOn;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue