Skip to content

Commit af8cd3a

Browse files
committed
Add baseline for phpstan
1 parent b989985 commit af8cd3a

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

phpstan-baseline.neon

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Parameter \#2 \$value of method Joomla\\Uri\\Uri\:\:setVar\(\) expects string, int\<1, max\> given\.$#'
5+
identifier: argument.type
6+
count: 2
7+
path: src/AbstractGithubObject.php
8+
9+
-
10+
message: '#^Class Joomla\\Github\\Github referenced with incorrect case\: Joomla\\Github\\GitHub\.$#'
11+
identifier: class.nameCase
12+
count: 1
13+
path: src/Github.php
14+
15+
-
16+
message: '#^Parameter \#2 \$value of method Joomla\\Uri\\Uri\:\:setVar\(\) expects string, int given\.$#'
17+
identifier: argument.type
18+
count: 4
19+
path: src/Package/Activity/Notifications.php
20+
21+
-
22+
message: '#^Variable \$labels in isset\(\) always exists and is not nullable\.$#'
23+
identifier: isset.variable
24+
count: 1
25+
path: src/Package/Issues.php
26+
27+
-
28+
message: '#^Variable \$response might not be defined\.$#'
29+
identifier: variable.undefined
30+
count: 1
31+
path: src/Package/Issues/Assignees.php
32+
33+
-
34+
message: '#^Parameter \#2 \$value of method Joomla\\Uri\\Uri\:\:setVar\(\) expects string, int\<min, \-1\>\|int\<1, max\> given\.$#'
35+
identifier: argument.type
36+
count: 1
37+
path: src/Package/Repositories.php
38+
39+
-
40+
message: '#^Parameter \#2 \$value of method Joomla\\Uri\\Uri\:\:setVar\(\) expects string, int\<min, \-1\>\|int\<1, max\> given\.$#'
41+
identifier: argument.type
42+
count: 2
43+
path: src/Package/Search.php
44+
45+
-
46+
message: '#^Parameter \#2 \$value of method Joomla\\Uri\\Uri\:\:setVar\(\) expects string, int\<min, \-1\>\|int\<1, max\> given\.$#'
47+
identifier: argument.type
48+
count: 1
49+
path: src/Package/Users.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)