File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ parameters:
10
10
11
11
ignoreErrors:
12
12
- '#Unsafe usage of new static\(\).#'
13
+ - identifier: missingType.generics
14
+ - identifier: missingType.iterableValue
13
15
14
16
excludePaths:
15
-
16
- checkMissingIterableValueType: false
17
-
18
- checkGenericClassInNonGenericObjectType: false
17
+ - ./src/Html/Fluent.php
Original file line number Diff line number Diff line change @@ -42,19 +42,13 @@ public function escapeLabelHtml(bool $escape): static
42
42
}
43
43
44
44
/**
45
- * @param array {
46
- * addButton?: string
47
- * inputPlaceholder?: string
48
- * noResults?: string
49
- * title?: string
50
- * placeholder?: string
51
- * } $i18n
52
- *
53
45
* @see https://editor.datatables.net/reference/field/tags#i18n
54
46
*/
55
47
public function i18n (array $ i18n ): static
56
48
{
57
- $ this ->attributes ['i18n ' ] = array_merge ($ this ->attributes ['i18n ' ] ?? [], $ i18n );
49
+ $ options = (array ) $ this ->attributes ['i18n ' ];
50
+
51
+ $ this ->attributes ['i18n ' ] = array_merge ($ options , $ i18n );
58
52
59
53
return $ this ;
60
54
}
You can’t perform that action at this time.
0 commit comments