Skip to content

Commit f92ec43

Browse files
committed
Adapt php baseline to 3.x-dev
1 parent 9d7c5c8 commit f92ec43

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

phpstan-baseline.neon

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: '#^Instanceof between Joomla\\Data\\DataObject and Joomla\\Data\\DataObject will always evaluate to true\.$#'
5-
identifier: instanceof.alwaysTrue
4+
message: "#^Parameter \\#1 \\$array of class ArrayIterator constructor expects array\\<TKey of \\(int\\|string\\), TValue\\>, stdClass given\\.$#"
5+
count: 1
6+
path: src/DataObject.php
7+
8+
-
9+
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
10+
count: 1
11+
path: src/DataSet.php
12+
13+
-
14+
message: "#^Property Joomla\\\\Data\\\\DataSet\\:\\:\\$current \\(int\\) does not accept default value of type false\\.$#"
15+
count: 1
16+
path: src/DataSet.php
17+
18+
-
19+
message: "#^Property Joomla\\\\Data\\\\DataSet\\:\\:\\$current \\(int\\) does not accept false\\.$#"
20+
count: 2
21+
path: src/DataSet.php
22+
23+
-
24+
message: "#^Property Joomla\\\\Data\\\\DataSet\\:\\:\\$current \\(int\\) does not accept null\\.$#"
25+
count: 1
26+
path: src/DataSet.php
27+
28+
-
29+
message: "#^Result of && is always false\\.$#"
630
count: 1
731
path: src/DataSet.php
832

933
-
10-
message: '#^Method Joomla\\Data\\DataSet\:\:offsetSet\(\) has InvalidArgumentException in PHPDoc @throws tag but it''s not thrown\.$#'
11-
identifier: throws.unusedType
34+
message: "#^Strict comparison using \\=\\=\\= between 'resource'\\|'resource \\(closed\\)' and 'object' will always evaluate to false\\.$#"
1235
count: 1
1336
path: src/DataSet.php
1437

1538
-
16-
message: '#^Strict comparison using \=\=\= between ''resource''\|''resource \(closed\)'' and ''object'' will always evaluate to false\.$#'
17-
identifier: identical.alwaysFalse
39+
message: "#^Strict comparison using \\=\\=\\= between int and false will always evaluate to false\\.$#"
1840
count: 1
1941
path: src/DataSet.php

0 commit comments

Comments
 (0)