@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * Returns the value from $hash matching the given path ($path) or |
| 21 | 21 | * if the path cannot be found in the hash, it returns the default |
| 22 | 22 | * value ($default). |
| 23 | - * @param $path A list of keys to traverse, seperated by '/' |
|
| 23 | + * @param null|string $path A list of keys to traverse, seperated by '/' |
|
| 24 | 24 | * @param $hash The hash to search |
| 25 | 25 | * @param null $default The default value if the path is not found. |
| 26 | 26 | * @return mixed|null |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * Converts a hash to a \arc\tree\NamedNode |
| 100 | 100 | * @param $hash |
| 101 | 101 | * @param null $parent |
| 102 | - * @return tree\NamedNode|null |
|
| 102 | + * @return tree\NamedNode |
|
| 103 | 103 | */ |
| 104 | 104 | public static function tree($hash, $parent = null) |
| 105 | 105 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * @param array $namedArgs Optional. The named arguments to pepper the function with, the order must be the order |
| 89 | 89 | * in which the unpeppered function expects them. If not set, pepper will use Reflection to get them. |
| 90 | 90 | * Format is [ 'argumentName' => 'defaultValue' ] |
| 91 | - * @return callable |
|
| 91 | + * @return \Closure |
|
| 92 | 92 | */ |
| 93 | 93 | public static function pepper(callable $callable, $namedArgs=null) |
| 94 | 94 | { |