Skip to content

Commit 5b1b13a

Browse files
authored
Merge pull request #3 from mbadolato/cat-1864
[CAT-1864] Upgrade to PhpStan 1.0
2 parents 4450554 + b77c5a7 commit 5b1b13a

4 files changed

+9
-6
lines changed

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}
1313
},
1414
"require": {
15-
"php": "^7.3",
16-
"phpstan/phpstan": "^0.12",
17-
"phpstan/phpstan-strict-rules": "^0.12"
15+
"php": "^7.3 || ^8.0",
16+
"phpstan/phpstan": "^0.12 || ^1.0",
17+
"phpstan/phpstan-strict-rules": "^0.12 || ^1.0"
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "^8.5"

tests/Rules/ConstantBooleanIdenticalRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ public function testRule(): void
3636
protected function getRule(): Rule
3737
{
3838
$ruleLevelHelper = new RuleLevelHelper(
39-
$this->createBroker(),
39+
$this->createReflectionProvider(),
4040
true,
4141
false,
42+
true,
4243
true
4344
);
4445

tests/Rules/ConstantBooleanNotIdenticalRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ public function testRule(): void
3636
protected function getRule(): Rule
3737
{
3838
$ruleLevelHelper = new RuleLevelHelper(
39-
$this->createBroker(),
39+
$this->createReflectionProvider(),
4040
true,
4141
false,
42+
true,
4243
true
4344
);
4445

tests/Rules/InstanceOfVsNotNullRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ protected function getRule(): Rule
2323
{
2424
return new InstanceOfVsNotNullRule(
2525
new RuleLevelHelper(
26-
$this->createBroker(),
26+
$this->createReflectionProvider(),
2727
true,
2828
false,
29+
true,
2930
true
3031
)
3132
);

0 commit comments

Comments
 (0)