Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
'count' => 1,
'path' => __DIR__ . '/app/Config/View.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(CodeIgniter\\\\Autoloader\\\\Autoloader\\), \'loadClass\'\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(CodeIgniter\\\\Autoloader\\\\Autoloader\\), \'loadClassmap\'\\} given\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:chunk\\(\\) has parameter \\$userFunc with no signature specified for Closure\\.$#',
'count' => 1,
Expand Down
2 changes: 1 addition & 1 deletion tests/system/HTTP/SiteURITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function provideConstructor(): iterable
return array_merge($this->provideSetPath(), $this->provideRelativePathWithQueryOrFragment());
}

public function provideSetPath(): iterable
public static function provideSetPath(): iterable
{
return [
'' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/system/Helpers/ArrayHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function testArrayGroupByExcludeEmpty(array $indexes, array $data, array
$this->assertSame($expected, $actual, 'array excluding empty not the same');
}

public function provideArrayGroupByIncludeEmpty(): iterable
public static function provideArrayGroupByIncludeEmpty(): iterable
{
yield 'simple group-by test' => [
['color'],
Expand Down Expand Up @@ -930,7 +930,7 @@ public function provideArrayGroupByIncludeEmpty(): iterable
];
}

public function provideArrayGroupByExcludeEmpty(): iterable
public static function provideArrayGroupByExcludeEmpty(): iterable
{
yield 'simple group-by test' => [
['color'],
Expand Down
2 changes: 1 addition & 1 deletion tests/system/View/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ public function testGenerateOrderedColumns(array $heading, array $row, string $e
$this->assertStringContainsString($expectContainsString, $generated);
}

public function orderedColumnUsecases(): iterable
public static function orderedColumnUsecases(): iterable
{
yield from [
'reorder example #1' => [
Expand Down