Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Oct 20, 2023
1 parent 46492a6 commit 886bab8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,26 @@ parameters:
count: 1
path: src/bundle/Form/RetryChoiceListFactory.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createListFromChoices\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: src/bundle/Form/RetryChoiceListFactory.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createListFromLoader\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: src/bundle/Form/RetryChoiceListFactory.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$attr with no value type specified in iterable type array\\.$#"
count: 1
path: src/bundle/Form/RetryChoiceListFactory.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$index with no type specified\\.$#"
count: 1
path: src/bundle/Form/RetryChoiceListFactory.php

-
message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$preferredChoices with no value type specified in iterable type array\\.$#"
count: 1
Expand Down
6 changes: 3 additions & 3 deletions src/bundle/Form/RetryChoiceListFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(ChoiceListFactoryInterface $choiceListFactory)
}

/** {@inheritDoc} */
public function createListFromChoices(iterable $choices, callable $value = null): ChoiceListInterface
public function createListFromChoices(iterable $choices, $value = null): ChoiceListInterface
{
$filter = \func_num_args() > 2 ? func_get_arg(2) : null;

Expand All @@ -36,7 +36,7 @@ public function createListFromChoices(iterable $choices, callable $value = null)
}

/** {@inheritDoc} */
public function createListFromLoader(ChoiceLoaderInterface $loader, callable $value = null): ChoiceListInterface
public function createListFromLoader(ChoiceLoaderInterface $loader, $value = null): ChoiceListInterface
{
$filter = \func_num_args() > 2 ? func_get_arg(2) : null;

Expand All @@ -50,7 +50,7 @@ public function createView(
ChoiceListInterface $list,
$preferredChoices = null,
$label = null,
callable $index = null,
$index = null,
callable $groupBy = null,
$attr = null
): ChoiceListView {
Expand Down

0 comments on commit 886bab8

Please sign in to comment.