fix text format
This commit is contained in:
@@ -34,7 +34,7 @@ class Text implements FieldInterface, RequiredInterface
|
||||
|
||||
public function format(array $input, array $output): array
|
||||
{
|
||||
$value = $input[$this->name] ?? null;
|
||||
$value = (string)$input[$this->name] ?? null;
|
||||
$output[$this->name] = (new Nullable($this->nullable, $value, ""))->value();
|
||||
return $output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user