for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Form\Field\Base;
/**
* @psalm-require-extends AbstractField
*/
trait MultipleTrait
{
* Allow to specify more than one value.
*
* @param bool $value Whether the user is to be allowed to specify more than one value.
* @link https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
public function multiple(bool $value = true): self
$new = clone $this;
$new->inputTagAttributes['multiple'] = $value;
inputTagAttributes
return $new;
}