Skip to content

Commit d4f77ab

Browse files
committed
Fix phpstan baselined errors
1 parent 7c76a17 commit d4f77ab

3 files changed

+6
-3
lines changed

phpstan-baseline.php

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php declare(strict_types = 1);
22

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

85
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];

tests/Type/DynamicFunctionReturnTypeExtensionTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function testFileAsserts(string $assertType, string $file, mixed ...$args
3232
$this->assertFileAsserts($assertType, $file, ...$args);
3333
}
3434

35+
/**
36+
* @return iterable<string, mixed[]>
37+
*/
3538
public static function provideFileAssertsCases(): iterable
3639
{
3740
yield from self::gatherAssertTypes(__DIR__ . '/../Fixtures/Type/config.php');

tests/Type/DynamicMethodReturnTypeExtensionTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function testFileAsserts(string $assertType, string $file, mixed ...$args
3232
$this->assertFileAsserts($assertType, $file, ...$args);
3333
}
3434

35+
/**
36+
* @return iterable<string, mixed[]>
37+
*/
3538
public static function provideFileAssertsCases(): iterable
3639
{
3740
yield from self::gatherAssertTypes(__DIR__ . '/../Fixtures/Type/model-find.php');

0 commit comments

Comments
 (0)