Skip to content

Commit 773751e

Browse files
authored
Merge pull request #8977 from kenjis/fix-same-filter-more-than-once
feat: [Filters] enables a filter to run more than once with different arguments
2 parents f420cc7 + 44db01c commit 773751e

File tree

8 files changed

+224
-163
lines changed

8 files changed

+224
-163
lines changed

phpstan-baseline.php

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5275,18 +5275,6 @@
52755275
'count' => 1,
52765276
'path' => __DIR__ . '/system/Filters/Filters.php',
52775277
];
5278-
$ignoreErrors[] = [
5279-
// identifier: missingType.iterableValue
5280-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:getFilters\\(\\) return type has no value type specified in iterable type array\\.$#',
5281-
'count' => 1,
5282-
'path' => __DIR__ . '/system/Filters/Filters.php',
5283-
];
5284-
$ignoreErrors[] = [
5285-
// identifier: missingType.iterableValue
5286-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:getFiltersClass\\(\\) return type has no value type specified in iterable type array\\.$#',
5287-
'count' => 1,
5288-
'path' => __DIR__ . '/system/Filters/Filters.php',
5289-
];
52905278
$ignoreErrors[] = [
52915279
// identifier: missingType.iterableValue
52925280
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:getRequiredFilters\\(\\) return type has no value type specified in iterable type array\\.$#',
@@ -5299,24 +5287,6 @@
52995287
'count' => 1,
53005288
'path' => __DIR__ . '/system/Filters/Filters.php',
53015289
];
5302-
$ignoreErrors[] = [
5303-
// identifier: missingType.iterableValue
5304-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:registerArguments\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#',
5305-
'count' => 1,
5306-
'path' => __DIR__ . '/system/Filters/Filters.php',
5307-
];
5308-
$ignoreErrors[] = [
5309-
// identifier: missingType.iterableValue
5310-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:runAfter\\(\\) has parameter \\$filterClasses with no value type specified in iterable type array\\.$#',
5311-
'count' => 1,
5312-
'path' => __DIR__ . '/system/Filters/Filters.php',
5313-
];
5314-
$ignoreErrors[] = [
5315-
// identifier: missingType.iterableValue
5316-
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:runBefore\\(\\) has parameter \\$filterClasses with no value type specified in iterable type array\\.$#',
5317-
'count' => 1,
5318-
'path' => __DIR__ . '/system/Filters/Filters.php',
5319-
];
53205290
$ignoreErrors[] = [
53215291
// identifier: missingType.iterableValue
53225292
'message' => '#^Method CodeIgniter\\\\Filters\\\\Filters\\:\\:setToolbarToLast\\(\\) return type has no value type specified in iterable type array\\.$#',
@@ -5329,18 +5299,6 @@
53295299
'count' => 1,
53305300
'path' => __DIR__ . '/system/Filters/Filters.php',
53315301
];
5332-
$ignoreErrors[] = [
5333-
// identifier: missingType.iterableValue
5334-
'message' => '#^Property CodeIgniter\\\\Filters\\\\Filters\\:\\:\\$filters type has no value type specified in iterable type array\\.$#',
5335-
'count' => 1,
5336-
'path' => __DIR__ . '/system/Filters/Filters.php',
5337-
];
5338-
$ignoreErrors[] = [
5339-
// identifier: missingType.iterableValue
5340-
'message' => '#^Property CodeIgniter\\\\Filters\\\\Filters\\:\\:\\$filtersClass type has no value type specified in iterable type array\\.$#',
5341-
'count' => 1,
5342-
'path' => __DIR__ . '/system/Filters/Filters.php',
5343-
];
53445302
$ignoreErrors[] = [
53455303
// identifier: missingType.iterableValue
53465304
'message' => '#^Method CodeIgniter\\\\Filters\\\\ForceHTTPS\\:\\:after\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#',
@@ -13936,7 +13894,7 @@
1393613894
$ignoreErrors[] = [
1393713895
// identifier: codeigniter.superglobalAccessAssign
1393813896
'message' => '#^Assigning \'GET\' directly on offset \'REQUEST_METHOD\' of \\$_SERVER is discouraged\\.$#',
13939-
'count' => 36,
13897+
'count' => 38,
1394013898
'path' => __DIR__ . '/tests/system/Filters/FiltersTest.php',
1394113899
];
1394213900
$ignoreErrors[] = [

0 commit comments

Comments
 (0)