Skip to content

Commit ce5379c

Browse files
committed
Dev: remove the filter ignore errors.
1 parent 6ec3a09 commit ce5379c

2 files changed

Lines changed: 11 additions & 31 deletions

File tree

phpstan-baseline.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,36 +1051,6 @@
10511051
'count' => 1,
10521052
'path' => __DIR__ . '/system/Filters/Filters.php',
10531053
];
1054-
$ignoreErrors[] = [
1055-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:discoverFilters\\(\\) has no return type specified\\.$#',
1056-
'count' => 1,
1057-
'path' => __DIR__ . '/system/Filters/Filters.php',
1058-
];
1059-
$ignoreErrors[] = [
1060-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:processAliasesToClass\\(\\) has no return type specified\\.$#',
1061-
'count' => 1,
1062-
'path' => __DIR__ . '/system/Filters/Filters.php',
1063-
];
1064-
$ignoreErrors[] = [
1065-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:processFilters\\(\\) has no return type specified\\.$#',
1066-
'count' => 1,
1067-
'path' => __DIR__ . '/system/Filters/Filters.php',
1068-
];
1069-
$ignoreErrors[] = [
1070-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:processGlobals\\(\\) has no return type specified\\.$#',
1071-
'count' => 1,
1072-
'path' => __DIR__ . '/system/Filters/Filters.php',
1073-
];
1074-
$ignoreErrors[] = [
1075-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:processMethods\\(\\) has no return type specified\\.$#',
1076-
'count' => 1,
1077-
'path' => __DIR__ . '/system/Filters/Filters.php',
1078-
];
1079-
$ignoreErrors[] = [
1080-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:setResponse\\(\\) has no return type specified\\.$#',
1081-
'count' => 1,
1082-
'path' => __DIR__ . '/system/Filters/Filters.php',
1083-
];
10841054
$ignoreErrors[] = [
10851055
'message' => '#^Method CodeIgniter\\\\Format\\\\XMLFormatter\\:\\:arrayToXML\\(\\) has no return type specified\\.$#',
10861056
'count' => 1,

system/Filters/Filters.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function __construct($config, RequestInterface $request, ResponseInterfac
121121
* Sample :
122122
* $filters->aliases['custom-auth'] = \Acme\Blob\Filters\BlobAuth::class;
123123
*/
124-
private function discoverFilters()
124+
private function discoverFilters(): void
125125
{
126126
$locator = Services::locator();
127127

@@ -144,6 +144,8 @@ private function discoverFilters()
144144

145145
/**
146146
* Set the response explicitly.
147+
*
148+
* @return void
147149
*/
148150
public function setResponse(ResponseInterface $response)
149151
{
@@ -390,6 +392,8 @@ public function getArguments(?string $key = null)
390392
* Add any applicable (not excluded) global filter settings to the mix.
391393
*
392394
* @param string $uri
395+
*
396+
* @return void
393397
*/
394398
protected function processGlobals(?string $uri = null)
395399
{
@@ -430,6 +434,8 @@ protected function processGlobals(?string $uri = null)
430434

431435
/**
432436
* Add any method-specific filters to the mix.
437+
*
438+
* @return void
433439
*/
434440
protected function processMethods()
435441
{
@@ -449,6 +455,8 @@ protected function processMethods()
449455
* Add any applicable configured filters to the mix.
450456
*
451457
* @param string $uri
458+
*
459+
* @return void
452460
*/
453461
protected function processFilters(?string $uri = null)
454462
{
@@ -480,6 +488,8 @@ protected function processFilters(?string $uri = null)
480488
/**
481489
* Maps filter aliases to the equivalent filter classes
482490
*
491+
* @return void
492+
*
483493
* @throws FilterException
484494
*/
485495
protected function processAliasesToClass(string $position)

0 commit comments

Comments
 (0)