Skip to content

Commit bd0ef26

Browse files
committed
chore: remove ignoreErrors
1 parent 9d63a34 commit bd0ef26

File tree

1 file changed

+1
-91
lines changed

1 file changed

+1
-91
lines changed

phpstan-baseline.php

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
'count' => 1,
1717
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
1818
];
19-
$ignoreErrors[] = [
20-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
21-
'count' => 3,
22-
'path' => __DIR__ . '/system/Autoloader/FileLocator.php',
23-
];
2419
$ignoreErrors[] = [
2520
'message' => '#^Only booleans are allowed in a ternary operator condition, int\\|string given\\.$#',
2621
'count' => 1,
@@ -31,11 +26,6 @@
3126
'count' => 6,
3227
'path' => __DIR__ . '/system/Autoloader/FileLocator.php',
3328
];
34-
$ignoreErrors[] = [
35-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
36-
'count' => 8,
37-
'path' => __DIR__ . '/system/BaseModel.php',
38-
];
3929
$ignoreErrors[] = [
4030
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:chunk\\(\\) has parameter \\$userFunc with no signature specified for Closure\\.$#',
4131
'count' => 1,
@@ -161,11 +151,6 @@
161151
'count' => 1,
162152
'path' => __DIR__ . '/system/Cache/Handlers/PredisHandler.php',
163153
];
164-
$ignoreErrors[] = [
165-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
166-
'count' => 6,
167-
'path' => __DIR__ . '/system/CodeIgniter.php',
168-
];
169154
$ignoreErrors[] = [
170155
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
171156
'count' => 1,
@@ -1721,16 +1706,6 @@
17211706
'count' => 1,
17221707
'path' => __DIR__ . '/system/Debug/BaseExceptionHandler.php',
17231708
];
1724-
$ignoreErrors[] = [
1725-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
1726-
'count' => 1,
1727-
'path' => __DIR__ . '/system/Debug/ExceptionHandler.php',
1728-
];
1729-
$ignoreErrors[] = [
1730-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
1731-
'count' => 1,
1732-
'path' => __DIR__ . '/system/Debug/Exceptions.php',
1733-
];
17341709
$ignoreErrors[] = [
17351710
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
17361711
'count' => 5,
@@ -2546,11 +2521,6 @@
25462521
'count' => 1,
25472522
'path' => __DIR__ . '/system/RESTful/BaseResource.php',
25482523
];
2549-
$ignoreErrors[] = [
2550-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
2551-
'count' => 1,
2552-
'path' => __DIR__ . '/system/RESTful/ResourceController.php',
2553-
];
25542524
$ignoreErrors[] = [
25552525
'message' => '#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#',
25562526
'count' => 1,
@@ -3041,11 +3011,6 @@
30413011
'count' => 1,
30423012
'path' => __DIR__ . '/system/Session/SessionInterface.php',
30433013
];
3044-
$ignoreErrors[] = [
3045-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3046-
'count' => 4,
3047-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
3048-
];
30493014
$ignoreErrors[] = [
30503015
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:clearInsertCache\\(\\) has no return type specified\\.$#',
30513016
'count' => 1,
@@ -3218,7 +3183,7 @@
32183183
];
32193184
$ignoreErrors[] = [
32203185
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3221-
'count' => 5,
3186+
'count' => 1,
32223187
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
32233188
];
32243189
$ignoreErrors[] = [
@@ -3501,11 +3466,6 @@
35013466
'count' => 1,
35023467
'path' => __DIR__ . '/system/Test/Mock/MockResourceController.php',
35033468
];
3504-
$ignoreErrors[] = [
3505-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3506-
'count' => 1,
3507-
'path' => __DIR__ . '/system/Test/Mock/MockResourcePresenter.php',
3508-
];
35093469
$ignoreErrors[] = [
35103470
'message' => '#^Method CodeIgniter\\\\Test\\\\Mock\\\\MockResourcePresenter\\:\\:getFormat\\(\\) has no return type specified\\.$#',
35113471
'count' => 1,
@@ -3626,11 +3586,6 @@
36263586
'count' => 1,
36273587
'path' => __DIR__ . '/system/Test/TestLogger.php',
36283588
];
3629-
$ignoreErrors[] = [
3630-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3631-
'count' => 1,
3632-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3633-
];
36343589
$ignoreErrors[] = [
36353590
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:__call\\(\\) should return mixed but return statement is missing\\.$#',
36363591
'count' => 1,
@@ -3746,31 +3701,11 @@
37463701
'count' => 1,
37473702
'path' => __DIR__ . '/system/Throttle/Throttler.php',
37483703
];
3749-
$ignoreErrors[] = [
3750-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3751-
'count' => 1,
3752-
'path' => __DIR__ . '/system/Validation/CreditCardRules.php',
3753-
];
37543704
$ignoreErrors[] = [
37553705
'message' => '#^Only booleans are allowed in a negated boolean, array\\|null given\\.$#',
37563706
'count' => 6,
37573707
'path' => __DIR__ . '/system/Validation/FileRules.php',
37583708
];
3759-
$ignoreErrors[] = [
3760-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3761-
'count' => 8,
3762-
'path' => __DIR__ . '/system/Validation/Rules.php',
3763-
];
3764-
$ignoreErrors[] = [
3765-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3766-
'count' => 4,
3767-
'path' => __DIR__ . '/system/Validation/StrictRules/Rules.php',
3768-
];
3769-
$ignoreErrors[] = [
3770-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3771-
'count' => 3,
3772-
'path' => __DIR__ . '/system/Validation/Validation.php',
3773-
];
37743709
$ignoreErrors[] = [
37753710
'message' => '#^Method CodeIgniter\\\\Validation\\\\Validation\\:\\:isClosure\\(\\) has parameter \\$rule with no signature specified for Closure\\.$#',
37763711
'count' => 1,
@@ -3781,36 +3716,16 @@
37813716
'count' => 2,
37823717
'path' => __DIR__ . '/system/Validation/Validation.php',
37833718
];
3784-
$ignoreErrors[] = [
3785-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3786-
'count' => 1,
3787-
'path' => __DIR__ . '/system/Validation/Views/list.php',
3788-
];
37893719
$ignoreErrors[] = [
37903720
'message' => '#^Call to an undefined static method CodeIgniter\\\\Config\\\\Factories\\:\\:cells\\(\\)\\.$#',
37913721
'count' => 1,
37923722
'path' => __DIR__ . '/system/View/Cell.php',
37933723
];
3794-
$ignoreErrors[] = [
3795-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3796-
'count' => 1,
3797-
'path' => __DIR__ . '/system/View/Filters.php',
3798-
];
3799-
$ignoreErrors[] = [
3800-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3801-
'count' => 4,
3802-
'path' => __DIR__ . '/system/View/Parser.php',
3803-
];
38043724
$ignoreErrors[] = [
38053725
'message' => '#^Method CodeIgniter\\\\View\\\\Parser\\:\\:addPlugin\\(\\) has parameter \\$callback with no signature specified for callable\\.$#',
38063726
'count' => 1,
38073727
'path' => __DIR__ . '/system/View/Parser.php',
38083728
];
3809-
$ignoreErrors[] = [
3810-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3811-
'count' => 7,
3812-
'path' => __DIR__ . '/system/View/Table.php',
3813-
];
38143729
$ignoreErrors[] = [
38153730
'message' => '#^Only booleans are allowed in a ternary operator condition, float given\\.$#',
38163731
'count' => 1,
@@ -3826,11 +3741,6 @@
38263741
'count' => 1,
38273742
'path' => __DIR__ . '/system/View/Table.php',
38283743
];
3829-
$ignoreErrors[] = [
3830-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3831-
'count' => 3,
3832-
'path' => __DIR__ . '/system/View/View.php',
3833-
];
38343744
$ignoreErrors[] = [
38353745
'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
38363746
'count' => 2,

0 commit comments

Comments
 (0)