From 4f1e8667c37dc527edaeece313fc67851b3b63ed Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sun, 4 Oct 2015 22:30:35 +0200 Subject: [PATCH] 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) --- lib/AbstractPicoPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AbstractPicoPlugin.php b/lib/AbstractPicoPlugin.php index 09e8eb2..e3ee2dc 100644 --- a/lib/AbstractPicoPlugin.php +++ b/lib/AbstractPicoPlugin.php @@ -187,7 +187,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface */ public function getDependencies() { - return $this->dependsOn; + return (array) $this->dependsOn; } /**