Skip to content

Commit b2136f3

Browse files
committed
phpstan baselines and configuration fixes
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 5c6e57a commit b2136f3

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,11 +1030,6 @@ parameters:
10301030
count: 1
10311031
path: src/Lexer.php
10321032

1033-
-
1034-
message: "#^Right side of && is always true\\.$#"
1035-
count: 1
1036-
path: src/Lexer.php
1037-
10381033
-
10391034
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:setDelimiter\\(\\) has no return typehint specified\\.$#"
10401035
count: 1
@@ -1267,7 +1262,7 @@ parameters:
12671262

12681263
-
12691264
message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#"
1270-
count: 3
1265+
count: 2
12711266
path: src/Statements/CreateStatement.php
12721267

12731268
-
@@ -1285,11 +1280,6 @@ parameters:
12851280
count: 4
12861281
path: src/Statements/CreateStatement.php
12871282

1288-
-
1289-
message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#"
1290-
count: 1
1291-
path: src/Statements/CreateStatement.php
1292-
12931283
-
12941284
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$fields \\(array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) does not accept array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
12951285
count: 1

phpstan.neon.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ parameters:
1111
inferPrivatePropertyTypeFromConstructor: true
1212
excludes_analyse:
1313
- tools/doctum-config.php
14+
dynamicConstantNames:
15+
- USE_UTF_STRINGS

0 commit comments

Comments
 (0)