Skip to content

Commit f71a95a

Browse files
committed
Add PHPStan baseline
1 parent 810f53c commit f71a95a

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

phpstan-baseline.neon

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Call to method database\\(\\) on an unknown class AdminerPimcore\\.$#"
5+
count: 1
6+
path: src/Controller/Admin/AdminerController.php
7+
8+
-
9+
message: "#^Instantiated class AdminerPimcore not found\\.$#"
10+
count: 1
11+
path: src/Controller/Admin/AdminerController.php
12+
13+
-
14+
message: "#^Method AdminerPimcore\\:\\:credentials\\(\\) return type has no value type specified in iterable type array\\.$#"
15+
count: 1
16+
path: src/Controller/Admin/AdminerController.php
17+
18+
-
19+
message: "#^Method AdminerPimcore\\:\\:css\\(\\) return type has no value type specified in iterable type array\\.$#"
20+
count: 1
21+
path: src/Controller/Admin/AdminerController.php
22+
23+
-
24+
message: "#^Method AdminerPimcore\\:\\:database\\(\\) should return string but returns string\\|null\\.$#"
25+
count: 1
26+
path: src/Controller/Admin/AdminerController.php
27+
28+
-
29+
message: "#^Method AdminerPimcore\\:\\:databases\\(\\) has parameter \\$flush with no type specified\\.$#"
30+
count: 1
31+
path: src/Controller/Admin/AdminerController.php
32+
33+
-
34+
message: "#^Method AdminerPimcore\\:\\:databases\\(\\) return type has no value type specified in iterable type array\\.$#"
35+
count: 1
36+
path: src/Controller/Admin/AdminerController.php
37+
38+
-
39+
message: "#^Method AdminerPimcore\\:\\:permanentLogin\\(\\) should return string but returns string\\|false\\.$#"
40+
count: 1
41+
path: src/Controller/Admin/AdminerController.php
42+
43+
-
44+
message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, Closure\\(\\)\\: void given\\.$#"
45+
count: 1
46+
path: src/Controller/Admin/AdminerController.php
47+
48+
-
49+
message: "#^Parameter \\#1 \\$content of class Symfony\\\\Component\\\\HttpFoundation\\\\Response constructor expects string\\|null, string\\|false given\\.$#"
50+
count: 1
51+
path: src/Controller/Admin/AdminerController.php
52+
53+
-
54+
message: "#^Parameter \\#1 \\$content of method Symfony\\\\Component\\\\HttpFoundation\\\\Response\\:\\:setContent\\(\\) expects string\\|null, string\\|false given\\.$#"
55+
count: 1
56+
path: src/Controller/Admin/AdminerController.php

phpstan.neon.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: 8
36

@@ -6,3 +9,6 @@ parameters:
69

710
bootstrapFiles:
811
- vendor/pimcore/pimcore/stubs/dynamic-constants.php
12+
13+
scanDirectories:
14+
- vendor/vrana/adminer

0 commit comments

Comments
 (0)