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:
1010
1111 ignoreErrors:
1212 - '#Unsafe usage of new static\(\).#'
13+ - identifier: missingType.generics
14+ - identifier: missingType.iterableValue
1315
1416 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
4242 }
4343
4444 /**
45- * @param array {
46- * addButton?: string
47- * inputPlaceholder?: string
48- * noResults?: string
49- * title?: string
50- * placeholder?: string
51- * } $i18n
52- *
5345 * @see https://editor.datatables.net/reference/field/tags#i18n
5446 */
5547 public function i18n (array $ i18n ): static
5648 {
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 );
5852
5953 return $ this ;
6054 }
You can’t perform that action at this time.
0 commit comments