@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * @param string $uri URI to render. |
| 52 | 52 | * @param array $context Context in which to render. |
| 53 | 53 | * |
| 54 | - * @return callable Rendering callback. |
|
| 54 | + * @return \Closure Rendering callback. |
|
| 55 | 55 | * @throws FailedToLoadView If the View URI is not accessible or readable. |
| 56 | 56 | * @throws FailedToLoadView If the View URI could not be loaded. |
| 57 | 57 | */ |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * @since 0.1.0 |
| 95 | 95 | * |
| 96 | 96 | * @param string $view View identifier to create a view for. |
| 97 | - * @param mixed $type Type of view to create. |
|
| 97 | + * @param string|null $type Type of view to create. |
|
| 98 | 98 | * |
| 99 | 99 | * @return View Instance of the requested view. |
| 100 | 100 | * @throws FailedToInstantiateView If the view could not be instantiated. |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | * |
| 200 | 200 | * @since 0.1.0 |
| 201 | 201 | * |
| 202 | - * @param array $criteria Criteria to match. |
|
| 202 | + * @param string[] $criteria Criteria to match. |
|
| 203 | 203 | * |
| 204 | 204 | * @return string|false URI of the requested view, or false if not found. |
| 205 | 205 | */ |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | * |
| 282 | 282 | * @since 0.2.0 |
| 283 | 283 | * |
| 284 | - * @param ConfigInterface|array $config Config to merge with defaults. |
|
| 284 | + * @param null|ConfigInterface $config Config to merge with defaults. |
|
| 285 | 285 | * |
| 286 | 286 | * @return ConfigInterface Configuration passed in through the constructor. |
| 287 | 287 | */ |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * @param string $uri URI to render. |
| 47 | 47 | * @param array $context Context in which to render. |
| 48 | 48 | * |
| 49 | - * @return callable Rendering callback. |
|
| 49 | + * @return \Closure Rendering callback. |
|
| 50 | 50 | */ |
| 51 | 51 | public function getRenderCallback(string $uri, array $context = []): callable |
| 52 | 52 | { |