@@ -395,7 +395,7 @@ |
||
| 395 | 395 | * Sanitize a path, ensuring it is absolute and |
| 396 | 396 | * if a directory, suffixed by a trailing slash. |
| 397 | 397 | * |
| 398 | - * @param string|array $path |
|
| 398 | + * @param string $path |
|
| 399 | 399 | * @return string |
| 400 | 400 | */ |
| 401 | 401 | protected function sanitizePath($path) |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param array $arguments |
| 100 | 100 | * @param \Closure $renderChildrenClosure |
| 101 | 101 | * @param RenderingContextInterface $renderingContext |
| 102 | - * @return mixed |
|
| 102 | + * @return string |
|
| 103 | 103 | */ |
| 104 | 104 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
| 105 | 105 | { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * |
| 138 | 138 | * @param array $elements The array / traversable object to be grouped |
| 139 | 139 | * @param string $groupBy Group by this property |
| 140 | - * @return array The grouped array in the form array('keys' => array('key1' => [key1value], 'key2' => [key2value], ...), 'values' => array('key1' => array([key1value] => [element1]), ...), ...) |
|
| 140 | + * @return string The grouped array in the form array('keys' => array('key1' => [key1value], 'key2' => [key2value], ...), 'values' => array('key1' => array([key1value] => [element1]), ...), ...) |
|
| 141 | 141 | * @throws ViewHelper\Exception |
| 142 | 142 | */ |
| 143 | 143 | protected static function groupElements(array $elements, $groupBy) |
@@ -385,7 +385,7 @@ |
||
| 385 | 385 | * @param array $arguments |
| 386 | 386 | * @param \Closure $renderChildrenClosure |
| 387 | 387 | * @param RenderingContextInterface $renderingContext |
| 388 | - * @return mixed |
|
| 388 | + * @return string |
|
| 389 | 389 | */ |
| 390 | 390 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
| 391 | 391 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @param mixed $candidate |
|
| 73 | + * @param string $candidate |
|
| 74 | 74 | * @param RenderingContextInterface $renderingContext |
| 75 | 75 | * @return mixed |
| 76 | 76 | */ |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | protected $source = null; |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @return mixed |
|
| 44 | + * @return string |
|
| 45 | 45 | */ |
| 46 | 46 | public function getSource() |
| 47 | 47 | { |
@@ -142,6 +142,9 @@ |
||
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $originalPathToSet |
|
| 147 | + */ |
|
| 145 | 148 | protected function assertSubjectIsArrayOrObject($subject, array $segmentsUntilSubject, $originalPathToSet) |
| 146 | 149 | { |
| 147 | 150 | if (!(is_array($subject) || is_object($subject))) { |