Skip to content

Commit

Permalink
ci: fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Jan 9, 2025
1 parent 18b845e commit ce4c2ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
7 changes: 3 additions & 4 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ parameters:

ignoreErrors:
- '#Unsafe usage of new static\(\).#'
- identifier: missingType.generics
- identifier: missingType.iterableValue

excludePaths:

checkMissingIterableValueType: false

checkGenericClassInNonGenericObjectType: false
- ./src/Html/Fluent.php
12 changes: 3 additions & 9 deletions src/Html/Editor/Fields/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,13 @@ public function escapeLabelHtml(bool $escape): static
}

/**
* @param array {
* addButton?: string
* inputPlaceholder?: string
* noResults?: string
* title?: string
* placeholder?: string
* } $i18n
*
* @see https://editor.datatables.net/reference/field/tags#i18n
*/
public function i18n(array $i18n): static
{
$this->attributes['i18n'] = array_merge($this->attributes['i18n'] ?? [], $i18n);
$options = (array) $this->attributes['i18n'];

$this->attributes['i18n'] = array_merge($options, $i18n);

return $this;
}
Expand Down

0 comments on commit ce4c2ea

Please sign in to comment.