Skip to content

Commit 8689906

Browse files
committed
Merge branch '4.6'
2 parents 7f716fc + feb9a0a commit 8689906

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"ibexa/code-style": "~2.0.0",
2222
"ibexa/doctrine-schema": "~5.0.x-dev",
2323
"ibexa/rector": "~5.0.x-dev",
24-
"phpstan/phpstan": "^1.10",
25-
"phpstan/phpstan-phpunit": "^1.3",
26-
"phpstan/phpstan-symfony": "^1.3",
24+
"phpstan/phpstan": "^2.0",
25+
"phpstan/phpstan-phpunit": "^2.0",
26+
"phpstan/phpstan-symfony": "^2.0",
2727
"phpunit/phpunit": "^9.0",
2828
"qossmic/deptrac-shim": "^0.24.0 || ^1.0.2"
2929
},

phpstan-baseline.neon

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to function assert\(\) with true will always evaluate to true\.$#'
5+
identifier: function.alreadyNarrowedType
6+
count: 1
7+
path: src/contracts/Persistence/CriterionMapper/AbstractFieldCriterionMapper.php
8+
9+
-
10+
message: '#^Instanceof between T of Ibexa\\Contracts\\CoreSearch\\Values\\Query\\Criterion\\FieldValueCriterion and Ibexa\\Contracts\\CoreSearch\\Values\\Query\\Criterion\\FieldValueCriterion will always evaluate to true\.$#'
11+
identifier: instanceof.alwaysTrue
12+
count: 1
13+
path: src/contracts/Persistence/CriterionMapper/AbstractFieldCriterionMapper.php
14+
15+
-
16+
message: '#^Method Ibexa\\CoreSearch\\CriterionMapper\\LogicalAndCriterionMapper\:\:getType\(\) never returns ''NOT'' so it can be removed from the return type\.$#'
17+
identifier: return.unusedType
18+
count: 1
19+
path: src/lib/CriterionMapper/LogicalAndCriterionMapper.php
20+
21+
-
22+
message: '#^Method Ibexa\\CoreSearch\\CriterionMapper\\LogicalAndCriterionMapper\:\:getType\(\) never returns ''OR'' so it can be removed from the return type\.$#'
23+
identifier: return.unusedType
24+
count: 1
25+
path: src/lib/CriterionMapper/LogicalAndCriterionMapper.php
26+
27+
-
28+
message: '#^Method Ibexa\\CoreSearch\\CriterionMapper\\LogicalOrCriterionMapper\:\:getType\(\) never returns ''AND'' so it can be removed from the return type\.$#'
29+
identifier: return.unusedType
30+
count: 1
31+
path: src/lib/CriterionMapper/LogicalOrCriterionMapper.php
32+
33+
-
34+
message: '#^Method Ibexa\\CoreSearch\\CriterionMapper\\LogicalOrCriterionMapper\:\:getType\(\) never returns ''NOT'' so it can be removed from the return type\.$#'
35+
identifier: return.unusedType
36+
count: 1
37+
path: src/lib/CriterionMapper/LogicalOrCriterionMapper.php

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
includes:
22
- vendor/phpstan/phpstan-phpunit/extension.neon
33
- vendor/phpstan/phpstan-symfony/extension.neon
4+
- phpstan-baseline.neon
45

56
parameters:
67
level: 8

0 commit comments

Comments
 (0)