Skip to content

Commit 424444f

Browse files
committed
chore: remove ignoreErrors
1 parent 8d17de2 commit 424444f

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,
@@ -3213,7 +3178,7 @@
32133178
];
32143179
$ignoreErrors[] = [
32153180
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3216-
'count' => 5,
3181+
'count' => 1,
32173182
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
32183183
];
32193184
$ignoreErrors[] = [
@@ -3496,11 +3461,6 @@
34963461
'count' => 1,
34973462
'path' => __DIR__ . '/system/Test/Mock/MockResourceController.php',
34983463
];
3499-
$ignoreErrors[] = [
3500-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3501-
'count' => 1,
3502-
'path' => __DIR__ . '/system/Test/Mock/MockResourcePresenter.php',
3503-
];
35043464
$ignoreErrors[] = [
35053465
'message' => '#^Method CodeIgniter\\\\Test\\\\Mock\\\\MockResourcePresenter\\:\\:getFormat\\(\\) has no return type specified\\.$#',
35063466
'count' => 1,
@@ -3621,11 +3581,6 @@
36213581
'count' => 1,
36223582
'path' => __DIR__ . '/system/Test/TestLogger.php',
36233583
];
3624-
$ignoreErrors[] = [
3625-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3626-
'count' => 1,
3627-
'path' => __DIR__ . '/system/Test/TestResponse.php',
3628-
];
36293584
$ignoreErrors[] = [
36303585
'message' => '#^Method CodeIgniter\\\\Test\\\\TestResponse\\:\\:__call\\(\\) should return mixed but return statement is missing\\.$#',
36313586
'count' => 1,
@@ -3741,31 +3696,11 @@
37413696
'count' => 1,
37423697
'path' => __DIR__ . '/system/Throttle/Throttler.php',
37433698
];
3744-
$ignoreErrors[] = [
3745-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3746-
'count' => 1,
3747-
'path' => __DIR__ . '/system/Validation/CreditCardRules.php',
3748-
];
37493699
$ignoreErrors[] = [
37503700
'message' => '#^Only booleans are allowed in a negated boolean, array\\|null given\\.$#',
37513701
'count' => 6,
37523702
'path' => __DIR__ . '/system/Validation/FileRules.php',
37533703
];
3754-
$ignoreErrors[] = [
3755-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3756-
'count' => 8,
3757-
'path' => __DIR__ . '/system/Validation/Rules.php',
3758-
];
3759-
$ignoreErrors[] = [
3760-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3761-
'count' => 4,
3762-
'path' => __DIR__ . '/system/Validation/StrictRules/Rules.php',
3763-
];
3764-
$ignoreErrors[] = [
3765-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3766-
'count' => 3,
3767-
'path' => __DIR__ . '/system/Validation/Validation.php',
3768-
];
37693704
$ignoreErrors[] = [
37703705
'message' => '#^Method CodeIgniter\\\\Validation\\\\Validation\\:\\:isClosure\\(\\) has parameter \\$rule with no signature specified for Closure\\.$#',
37713706
'count' => 1,
@@ -3776,36 +3711,16 @@
37763711
'count' => 2,
37773712
'path' => __DIR__ . '/system/Validation/Validation.php',
37783713
];
3779-
$ignoreErrors[] = [
3780-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3781-
'count' => 1,
3782-
'path' => __DIR__ . '/system/Validation/Views/list.php',
3783-
];
37843714
$ignoreErrors[] = [
37853715
'message' => '#^Call to an undefined static method CodeIgniter\\\\Config\\\\Factories\\:\\:cells\\(\\)\\.$#',
37863716
'count' => 1,
37873717
'path' => __DIR__ . '/system/View/Cell.php',
37883718
];
3789-
$ignoreErrors[] = [
3790-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3791-
'count' => 1,
3792-
'path' => __DIR__ . '/system/View/Filters.php',
3793-
];
3794-
$ignoreErrors[] = [
3795-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3796-
'count' => 4,
3797-
'path' => __DIR__ . '/system/View/Parser.php',
3798-
];
37993719
$ignoreErrors[] = [
38003720
'message' => '#^Method CodeIgniter\\\\View\\\\Parser\\:\\:addPlugin\\(\\) has parameter \\$callback with no signature specified for callable\\.$#',
38013721
'count' => 1,
38023722
'path' => __DIR__ . '/system/View/Parser.php',
38033723
];
3804-
$ignoreErrors[] = [
3805-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3806-
'count' => 7,
3807-
'path' => __DIR__ . '/system/View/Table.php',
3808-
];
38093724
$ignoreErrors[] = [
38103725
'message' => '#^Only booleans are allowed in a ternary operator condition, float given\\.$#',
38113726
'count' => 1,
@@ -3821,11 +3736,6 @@
38213736
'count' => 1,
38223737
'path' => __DIR__ . '/system/View/Table.php',
38233738
];
3824-
$ignoreErrors[] = [
3825-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
3826-
'count' => 3,
3827-
'path' => __DIR__ . '/system/View/View.php',
3828-
];
38293739
$ignoreErrors[] = [
38303740
'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
38313741
'count' => 2,

0 commit comments

Comments
 (0)