Skip to content

Commit 4c1407c

Browse files
committed
Add phpstan baseline for 3.x-dev
1 parent 535465d commit 4c1407c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

phpstan-baseline.neon

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Method Joomla\\\\OAuth1\\\\Client\\:\\:authenticate\\(\\) should return array\\|null but return statement is missing\\.$#"
5+
count: 1
6+
path: src/Client.php
7+
8+
-
9+
message: "#^Parameter \\#2 \\$response of method Joomla\\\\OAuth1\\\\Client\\:\\:validateResponse\\(\\) expects Joomla\\\\OAuth1\\\\Response, Joomla\\\\Http\\\\Response given\\.$#"
10+
count: 1
11+
path: src/Client.php
12+
13+
-
14+
message: "#^Parameter \\$response of method Joomla\\\\OAuth1\\\\Client\\:\\:validateResponse\\(\\) has invalid type Joomla\\\\OAuth1\\\\Response\\.$#"
15+
count: 1
16+
path: src/Client.php
17+
18+
-
19+
message: "#^Property Joomla\\\\OAuth1\\\\Client\\:\\:\\$token \\(array\\) does not accept null\\.$#"
20+
count: 1
21+
path: src/Client.php
22+
23+
-
24+
message: "#^Result of && is always false\\.$#"
25+
count: 1
26+
path: src/Client.php
27+
28+
-
29+
message: "#^Unreachable statement \\- code above always terminates\\.$#"
30+
count: 1
31+
path: src/Client.php
32+
33+
-
34+
message: "#^Variable \\$response might not be defined\\.$#"
35+
count: 2
36+
path: src/Client.php

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
includes:
33
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
- phpstan-baseline.neon
45

56
parameters:
67
level: 5

0 commit comments

Comments
 (0)