-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan-baseline.neon
26 lines (23 loc) · 1021 Bytes
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
parameters:
ignoreErrors:
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/sad_spirit/pg_wrapper/converters/CachedTypeOIDMapper.php
# well duh
-
message: "#^Offset 'foo' on sad_spirit\\\\pg_wrapper\\\\(tests\\\\)?types\\\\[a-zA-Z]+ in isset\\(\\) does not exist\\.$#"
paths:
- tests\types\PointListTest.php
- tests\types\MultiRangeTest.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert::assert(True|False)\\(\\) with false#"
paths:
- tests\ConnectionTransactionsTest.php
- tests\types\PointListTest.php
- tests\types\MultiRangeTest.php
# New false positives in phpstan 2, probably it is trying to be "smart" with methods named isWhatever()?
-
message: "#^Call to method sad_spirit\\\\pg_wrapper\\\\converters\\\\TypeOIDMapper::is(Range|MultiRange|Domain)TypeOID\\(\\) with int\\|string and null will always evaluate to false\\.$#"
count: 3
path: src/sad_spirit/pg_wrapper/converters/DefaultTypeConverterFactory.php