| @@ -1,5 +1,5 @@ | ||
| 1 | -<?php | |
| 1 | +<?php declare(strict_types=1); | |
| 2 | 2 | |
| 3 | 3 | namespace Invoker; |
| 4 | 4 | |
| 5 | 5 | use Invoker\Exception\InvocationException; |
| @@ -7,10 +7,8 @@ | ||
| 7 | 7 | use Invoker\Exception\NotEnoughParametersException; |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Invoke a callable. |
| 11 | - * | |
| 12 | - * @author Matthieu Napoli <matthieu@mnapoli.fr> | |
| 13 | 11 | */ |
| 14 | 12 | interface InvokerInterface |
| 15 | 13 | { |
| 16 | 14 | /** |
| @@ -15,15 +13,13 @@ | ||
| 15 | 13 | { |
| 16 | 14 | /** |
| 17 | 15 | * Call the given function using the given parameters. |
| 18 | 16 | * |
| 19 | - * @param callable $callable Function to call. | |
| 20 | - * @param array $parameters Parameters to use. | |
| 21 | - * | |
| 17 | + * @param callable|array|string $callable Function to call. | |
| 18 | + * @param array $parameters Parameters to use. | |
| 22 | 19 | * @return mixed Result of the function. |
| 23 | - * | |
| 24 | 20 | * @throws InvocationException Base exception class for all the sub-exceptions below. |
| 25 | 21 | * @throws NotCallableException |
| 26 | 22 | * @throws NotEnoughParametersException |
| 27 | 23 | */ |
| 28 | - public function call($callable, array $parameters = array()); | |
| 24 | + public function call($callable, array $parameters = []); | |
| 29 | 25 | } |