Skip to content

Commit

Permalink
Ignore false-positive phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Apr 26, 2023
1 parent 1ee10c5 commit 016d64e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Type/BaseTypeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function testSubmitNullUsesDefaultEmptyData($emptyData = 'empty', $expect
*/
protected function create(mixed $data = null, array $options = []): FormInterface
{
// @phpstan-ignore-next-line
return $this->factory->create($this->getTestedType(), $data, $options);
}

Expand All @@ -195,6 +196,7 @@ protected function create(mixed $data = null, array $options = []): FormInterfac
*/
protected function createNamed(string $name, mixed $data = null, array $options = []): FormInterface
{
// @phpstan-ignore-next-line
return $this->factory->createNamed($name, $this->getTestedType(), $data, $options);
}

Expand Down

0 comments on commit 016d64e

Please sign in to comment.