From db66d7f9232bf4bdbd5cdf53106b6a7529d4003b Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Sat, 17 Mar 2018 21:11:27 +0100 Subject: [PATCH] - Fix variable validation --- src/IPub/Flysystem/DI/FlysystemExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IPub/Flysystem/DI/FlysystemExtension.php b/src/IPub/Flysystem/DI/FlysystemExtension.php index d516d56..48fbf1d 100644 --- a/src/IPub/Flysystem/DI/FlysystemExtension.php +++ b/src/IPub/Flysystem/DI/FlysystemExtension.php @@ -149,7 +149,7 @@ private function registerService(string $type, string $name, string $class, stri } /** - * @param array $parameters + * @param array|NULL $parameters * @param array $configuration * @param string $serviceName * @@ -159,7 +159,7 @@ private function registerService(string $type, string $name, string $class, stri * @throws Exceptions\InvalidAdapterException * @throws Utils\AssertionException */ - private function validateParameters(array $parameters, array $configuration, string $serviceName) : Utils\ArrayHash + private function validateParameters(?array $parameters, array $configuration, string $serviceName) : Utils\ArrayHash { $collection = [];