Skip to content

Commit ce4c2ea

Browse files
committed
ci: fix static analysis
1 parent 18b845e commit ce4c2ea

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

phpstan.neon.dist

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

src/Html/Editor/Fields/Tags.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)