Skip to content

Commit f2571a9

Browse files
committed
chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baseline.php
1 parent 76c4303 commit f2571a9

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

phpstan-baseline.php

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
];
1515
$ignoreErrors[] = [
1616
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
17-
'count' => 2,
17+
'count' => 1,
1818
'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php',
1919
];
2020
$ignoreErrors[] = [
@@ -45,7 +45,7 @@
4545
];
4646
$ignoreErrors[] = [
4747
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
48-
'count' => 4,
48+
'count' => 2,
4949
'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php',
5050
];
5151
$ignoreErrors[] = [
@@ -95,16 +95,6 @@
9595
];
9696
$ignoreErrors[] = [
9797
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
98-
'count' => 3,
99-
'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
100-
];
101-
$ignoreErrors[] = [
102-
'message' => '#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#',
103-
'count' => 1,
104-
'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
105-
];
106-
$ignoreErrors[] = [
107-
'message' => '#^Only booleans are allowed in an if condition, CodeIgniter\\\\Shield\\\\Entities\\\\UserIdentity\\|null given\\.$#',
10898
'count' => 1,
10999
'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php',
110100
];
@@ -130,29 +120,14 @@
130120
];
131121
$ignoreErrors[] = [
132122
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
133-
'count' => 1,
134-
'path' => __DIR__ . '/src/Authentication/Passwords.php',
135-
];
136-
$ignoreErrors[] = [
137-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
138-
'count' => 1,
139-
'path' => __DIR__ . '/src/Authentication/Passwords/CompositionValidator.php',
140-
];
141-
$ignoreErrors[] = [
142-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
143-
'count' => 5,
123+
'count' => 4,
144124
'path' => __DIR__ . '/src/Authentication/Passwords/NothingPersonalValidator.php',
145125
];
146126
$ignoreErrors[] = [
147127
'message' => '#^Call to method CodeIgniter\\\\Shield\\\\Result\\:\\:isOK\\(\\) with incorrect case\\: isOk$#',
148128
'count' => 2,
149129
'path' => __DIR__ . '/src/Authentication/Passwords/ValidationRules.php',
150130
];
151-
$ignoreErrors[] = [
152-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
153-
'count' => 1,
154-
'path' => __DIR__ . '/src/Authentication/Passwords/ValidationRules.php',
155-
];
156131
$ignoreErrors[] = [
157132
'message' => '#^Only booleans are allowed in &&, CodeIgniter\\\\Shield\\\\Entities\\\\User\\|null given on the right side\\.$#',
158133
'count' => 1,
@@ -249,11 +224,6 @@
249224
'count' => 1,
250225
'path' => __DIR__ . '/src/Entities/Entity.php',
251226
];
252-
$ignoreErrors[] = [
253-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
254-
'count' => 2,
255-
'path' => __DIR__ . '/src/Entities/Group.php',
256-
];
257227
$ignoreErrors[] = [
258228
'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\GroupModel\\:\\:class is discouraged\\.$#',
259229
'count' => 2,
@@ -276,7 +246,7 @@
276246
];
277247
$ignoreErrors[] = [
278248
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
279-
'count' => 8,
249+
'count' => 7,
280250
'path' => __DIR__ . '/src/Entities/User.php',
281251
];
282252
$ignoreErrors[] = [
@@ -366,11 +336,6 @@
366336
'count' => 8,
367337
'path' => __DIR__ . '/tests/Authentication/Authenticators/SessionAuthenticatorTest.php',
368338
];
369-
$ignoreErrors[] = [
370-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
371-
'count' => 1,
372-
'path' => __DIR__ . '/tests/Authentication/Filters/AbstractFilterTestCase.php',
373-
];
374339
$ignoreErrors[] = [
375340
'message' => '#^Implicit array creation is not allowed \\- variable \\$users might not exist\\.$#',
376341
'count' => 1,

0 commit comments

Comments
 (0)