@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Slince\Di; |
13 | 13 | |
14 | 14 | use Slince\Di\Exception\ConfigException; |
15 | -use Slince\Di\Exception\DependencyInjectionException; |
|
16 | 15 | use Slince\Di\Exception\NotFoundException; |
17 | 16 | use Interop\Container\ContainerInterface; |
18 | 17 |
@@ -146,7 +146,7 @@ |
||
146 | 146 | * @param \ReflectionFunctionAbstract $method |
147 | 147 | * @param array $arguments |
148 | 148 | * @throws DependencyInjectionException |
149 | - * @return array |
|
149 | + * @return null|callable |
|
150 | 150 | */ |
151 | 151 | public function resolveFunctionArguments( |
152 | 152 | \ReflectionFunctionAbstract $method, |
@@ -217,7 +217,7 @@ |
||
217 | 217 | return $this->container->get(substr($value, 1)); |
218 | 218 | } |
219 | 219 | //"fool%bar%baz" |
220 | - return preg_replace_callback("#%([^%\s]+)%#", function ($matches) { |
|
220 | + return preg_replace_callback("#%([^%\s]+)%#", function($matches) { |
|
221 | 221 | $key = $matches[1]; |
222 | 222 | if ($parameter = $this->container->getParameter($key)) { |
223 | 223 | return $parameter; |
@@ -219,7 +219,7 @@ |
||
219 | 219 | { |
220 | 220 | $this->calls[] = [ |
221 | 221 | $method, |
222 | - (array)$arguments |
|
222 | + (array) $arguments |
|
223 | 223 | ]; |
224 | 224 | return $this; |
225 | 225 | } |