Skip to content

Commit f4c9122

Browse files
authored
Merge pull request #165 from throwexceptions/patch-2
Allow array on default() method
2 parents 860648a + a222232 commit f4c9122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Html/Editor/Fields/Field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ public function format(string $format): static
190190
/**
191191
* Set field default value.
192192
*
193-
* @param float|bool|int|string $value
193+
* @param float|bool|int|string|array $value
194194
* @return $this
195195
* @see https://editor.datatables.net/reference/option/fields.def
196196
*/
197-
public function default(float|bool|int|string $value): static
197+
public function default(float|bool|int|string|array $value): static
198198
{
199199
$this->attributes['def'] = $value;
200200

0 commit comments

Comments
 (0)