Skip to content

Commit

Permalink
Fix phpstan baselined errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Nov 5, 2023
1 parent 7c76a17 commit d4f77ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php declare(strict_types = 1);

$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\PHPStan\\\\Tests\\\\Type\\\\\\S+Test\\:\\:\\S+\\(\\) return type has no value type specified in iterable type iterable\\.$#',
];

return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
3 changes: 3 additions & 0 deletions tests/Type/DynamicFunctionReturnTypeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function testFileAsserts(string $assertType, string $file, mixed ...$args
$this->assertFileAsserts($assertType, $file, ...$args);
}

/**
* @return iterable<string, mixed[]>
*/
public static function provideFileAssertsCases(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/../Fixtures/Type/config.php');
Expand Down
3 changes: 3 additions & 0 deletions tests/Type/DynamicMethodReturnTypeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function testFileAsserts(string $assertType, string $file, mixed ...$args
$this->assertFileAsserts($assertType, $file, ...$args);
}

/**
* @return iterable<string, mixed[]>
*/
public static function provideFileAssertsCases(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/../Fixtures/Type/model-find.php');
Expand Down

0 comments on commit d4f77ab

Please sign in to comment.