Skip to content

Commit

Permalink
fix cs and phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Oct 3, 2020
1 parent 87fbb8e commit 0fb5e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Form/ChoiceList/ModelChoiceLoader.php
Expand Up @@ -67,7 +67,7 @@ final class ModelChoiceLoader implements ChoiceLoaderInterface
/**
* @param object[] $choices
*
* @phpstan-param class-string|null $class
* @phpstan-param class-string $class
*/
public function __construct(
ModelManagerInterface $modelManager,
Expand All @@ -78,6 +78,7 @@ public function __construct(
array $choices = []
) {
$this->modelManager = $modelManager;
$this->propertyAccessor = $propertyAccessor;
$this->class = $class;
$this->property = $property;
$this->choices = $choices;
Expand All @@ -89,8 +90,6 @@ public function __construct(

$this->query = $query;
}

$this->propertyAccessor = $propertyAccessor;
}

public function loadChoiceList($value = null): ChoiceListInterface
Expand Down
2 changes: 1 addition & 1 deletion tests/Form/Type/ModelTypeTest.php
Expand Up @@ -68,7 +68,7 @@ public function testCompoundOption(bool $expectedCompound, bool $multiple, bool

$this->type->configureOptions($optionResolver);

$options = $optionResolver->resolve(['model_manager' => $modelManager,'class' => \stdClass::class, 'choices' => [], 'multiple' => $multiple, 'expanded' => $expanded]);
$options = $optionResolver->resolve(['model_manager' => $modelManager, 'class' => \stdClass::class, 'choices' => [], 'multiple' => $multiple, 'expanded' => $expanded]);

$this->assertSame($expectedCompound, $options['compound']);
$this->assertSame('choice', $options['template']);
Expand Down

0 comments on commit 0fb5e7a

Please sign in to comment.