Closed axyr closed 6 years ago
bs()->radio('test')
gives the error:
Type error: Argument 1 passed to MarvinLabs\Html\Bootstrap\Elements\Radio::description() must be of the type string, null given
the MarvinLabs\Html\Bootstrap\Traits\BuildsForms::radio() method allows null values:
MarvinLabs\Html\Bootstrap\Traits\BuildsForms::radio()
public function radio($name = null, $description = null, $isChecked = false)
but the Radio method description(string $text) does not allow null.
description(string $text)
Woops. I had fixed it for checkboxes but that one slipped. Sorry. Will remove the type hint.
Can't wait for Laravel to require php 7.2 and thus nullable ?string type hints
?string
Fixed
gives the error:
the
MarvinLabs\Html\Bootstrap\Traits\BuildsForms::radio()
method allows null values:but the Radio method
description(string $text)
does not allow null.