@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Html\Elements; |
4 | 4 | |
5 | +use Illuminate\Support\Collection; |
|
5 | 6 | use Illuminate\Support\Str; |
6 | -use Spatie\Html\Selectable; |
|
7 | 7 | use Spatie\Html\BaseElement; |
8 | -use Illuminate\Support\Collection; |
|
8 | +use Spatie\Html\Selectable; |
|
9 | 9 | |
10 | 10 | class Select extends BaseElement |
11 | 11 | { |
@@ -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 |
@@ -382,8 +382,6 @@ discard block |
||
382 | 382 | * Dynamically handle calls to the class. |
383 | 383 | * Check for methods finishing by If or fallback to Macroable. |
384 | 384 | * |
385 | - * @param string $method |
|
386 | - * @param array $parameters |
|
387 | 385 | * @return mixed |
388 | 386 | * |
389 | 387 | * @throws \BadMethodCallException |
@@ -421,6 +419,9 @@ discard block |
||
421 | 419 | return $this->render(); |
422 | 420 | } |
423 | 421 | |
422 | + /** |
|
423 | + * @param callable $mapper |
|
424 | + */ |
|
424 | 425 | protected function parseChildren($children, $mapper = null): Collection |
425 | 426 | { |
426 | 427 | if ($children instanceof HtmlElement) { |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Html; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
5 | +use Illuminate\Contracts\Support\Htmlable; |
|
6 | 6 | use Illuminate\Support\Collection; |
7 | 7 | use Illuminate\Support\HtmlString; |
8 | -use Spatie\Html\Exceptions\MissingTag; |
|
9 | -use Spatie\Html\Exceptions\InvalidHtml; |
|
8 | +use Illuminate\Support\Str; |
|
10 | 9 | use Illuminate\Support\Traits\Macroable; |
11 | 10 | use Spatie\Html\Exceptions\InvalidChild; |
12 | -use Illuminate\Contracts\Support\Htmlable; |
|
11 | +use Spatie\Html\Exceptions\InvalidHtml; |
|
12 | +use Spatie\Html\Exceptions\MissingTag; |
|
13 | 13 | |
14 | 14 | abstract class BaseElement implements Htmlable, HtmlElement |
15 | 15 | { |