@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Alias for `addChildren`. |
194 | 194 | * |
195 | - * @param \Spatie\Html\HtmlElement|string|iterable|null $children |
|
195 | + * @param Elements\Input $child |
|
196 | 196 | * @param callable|null $mapper |
197 | 197 | * |
198 | 198 | * @return static |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | /** |
206 | 206 | * Alias for `addChildren`. |
207 | 207 | * |
208 | - * @param \Spatie\Html\HtmlElement|string|iterable|null $children |
|
208 | + * @param \Spatie\Html\HtmlElement|string|iterable|null $child |
|
209 | 209 | * @param callable|null $mapper |
210 | 210 | * |
211 | 211 | * @return static |
@@ -410,6 +410,10 @@ discard block |
||
410 | 410 | return $this->__macro_call($name, $arguments); |
411 | 411 | } |
412 | 412 | |
413 | + /** |
|
414 | + * @param string $type |
|
415 | + * @param string $method |
|
416 | + */ |
|
413 | 417 | protected function callConditionalMethod($type, $method, array $arguments) |
414 | 418 | { |
415 | 419 | $condition = (bool) array_shift($arguments); |
@@ -445,6 +449,9 @@ discard block |
||
445 | 449 | return $this->render(); |
446 | 450 | } |
447 | 451 | |
452 | + /** |
|
453 | + * @param callable $mapper |
|
454 | + */ |
|
448 | 455 | protected function parseChildren($children, $mapper = null): Collection |
449 | 456 | { |
450 | 457 | if ($children instanceof HtmlElement) { |