Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions phpstan-baseline-8x.neon
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int\\|string, mixed\\> given\\.$#"
message: '#^Parameter \#2 \$values of function vsprintf expects array\<bool\|float\|int\|string\|null\>, array\<int\|string, mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/Compat/CompatController.php

-
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#'
identifier: argument.type
count: 1
path: src/Control/SearchBar/Suggestions.php

-
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, mixed given\\.$#"
message: '#^Parameter \#1 \$string of function rawurlencode expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Control/SearchBar/Terms.php

-
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#"
message: '#^Parameter \#2 \$string of function explode expects string, int\|string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Control/SortControl.php

-
message: "#^Parameter \\#2 \\$string of function explode expects string, int\\|string\\|null given\\.$#"
count: 1
path: src/Control/SortControl.php

-
message: "#^Parameter \\#1 \\$column of method ipl\\\\Web\\\\Filter\\\\Parser\\:\\:createCondition\\(\\) expects string, string\\|false given\\.$#"
message: '#^Parameter \#1 \$column of method ipl\\Web\\Filter\\Parser\:\:createCondition\(\) expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Filter/Parser.php

-
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, mixed given\\.$#"
message: '#^Parameter \#1 \$string of function rawurlencode expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Filter/Renderer.php

-
message: "#^Parameter \\#1 \\$array of function array_push expects array, mixed given\\.$#"
message: '#^Parameter \#1 \$array of function array_push expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: src/FormElement/TermInput.php

-
message: "#^Parameter \\#1 \\$content of static method ipl\\\\Html\\\\Text\\:\\:create\\(\\) expects string, string\\|null given\\.$#"
message: '#^Parameter \#1 \$content of static method ipl\\Html\\Text\:\:create\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Widget/Tabs.php
2 changes: 1 addition & 1 deletion src/Common/BaseTableRowItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @param object $item
* @param BaseItemTable|null $table
*/
public function __construct($item, BaseItemTable $table = null)
public function __construct($item, ?BaseItemTable $table = null)
{
$this->item = $item;
$this->table = $table;
Expand All @@ -38,7 +38,7 @@
$this->setTag('div');
}

$this->addAttributes($this->baseAttributes);

Check failure on line 41 in src/Common/BaseTableRowItem.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.2) / PHPStan 8.2

Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array<string, array<bool|string|null>|bool|string|null>|ipl\Html\Attributes, array<string, mixed> given.

Check failure on line 41 in src/Common/BaseTableRowItem.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.5) / PHPStan 8.5

Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array<string, array<bool|string|null>|bool|string|null>|ipl\Html\Attributes, array<string, mixed> given.

Check failure on line 41 in src/Common/BaseTableRowItem.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.3) / PHPStan 8.3

Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array<string, array<bool|string|null>|bool|string|null>|ipl\Html\Attributes, array<string, mixed> given.

Check failure on line 41 in src/Common/BaseTableRowItem.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.4) / PHPStan 8.4

Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array<string, array<bool|string|null>|bool|string|null>|ipl\Html\Attributes, array<string, mixed> given.

$this->init();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Common/StateBadges.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function setUrl(Url $url): self
*
* @return Link
*/
public function createLink($content, array $filter = null): Link
public function createLink($content, ?array $filter = null): Link
{
$url = clone $this->getUrl();

Expand Down
2 changes: 1 addition & 1 deletion src/FormElement/SearchSuggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected function assemble(): void
if ($groupingCallback) {
$provider = yield_groups($this->provider, $groupingCallback);
} else {
$provider = [null => $this->provider];
$provider = ['' => $this->provider];
}

/** @var iterable<?string, array<array<string, string>>> $provider */
Expand Down
Loading