Skip to content

Commit 5acc5fb

Browse files
committed
Build compatibility with PHPStan 0.12.6
1 parent 2aaa3fc commit 5acc5fb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "~7.1",
10-
"phpstan/phpstan": "^0.12.4"
10+
"phpstan/phpstan": "^0.12.6"
1111
},
1212
"require-dev": {
1313
"beberlei/assert": "^2.9.5",

tests/Type/BeberleiAssert/ImpossibleCheckTypeMethodCallRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ImpossibleCheckTypeMethodCallRuleTest extends \PHPStan\Testing\RuleTestCas
1414

1515
protected function getRule(): Rule
1616
{
17-
return new ImpossibleCheckTypeMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), []), true);
17+
return new ImpossibleCheckTypeMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), [], true), true, true);
1818
}
1919

2020
/**

tests/Type/BeberleiAssert/ImpossibleCheckTypeStaticMethodCallRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ImpossibleCheckTypeStaticMethodCallRuleTest extends \PHPStan\Testing\RuleT
1414

1515
protected function getRule(): Rule
1616
{
17-
return new ImpossibleCheckTypeStaticMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), []), true);
17+
return new ImpossibleCheckTypeStaticMethodCallRule(new ImpossibleCheckTypeHelper($this->createBroker(), $this->getTypeSpecifier(), [], true), true, true);
1818
}
1919

2020

@@ -38,6 +38,7 @@ public function testExtension(): void
3838
[
3939
'Call to static method Assert\Assertion::allString() with array<string> will always evaluate to true.',
4040
21,
41+
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
4142
],
4243
]);
4344
}

0 commit comments

Comments
 (0)