Skip to content

Commit ffc88a2

Browse files
committed
Open 0.12-dev
1 parent 07b88f8 commit ffc88a2

8 files changed

+23
-15
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
>
8787
<arg value="analyse"/>
8888
<arg value="-l"/>
89-
<arg value="7"/>
89+
<arg value="8"/>
9090
<arg value="-c"/>
9191
<arg path="phpstan.neon"/>
9292
<arg path="src"/>

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prefer-stable": true,
88
"extra": {
99
"branch-alias": {
10-
"dev-master": "0.11-dev"
10+
"dev-master": "0.12-dev"
1111
},
1212
"phpstan": {
1313
"includes": [
@@ -17,7 +17,7 @@
1717
},
1818
"require": {
1919
"php": "~7.1",
20-
"phpstan/phpstan": "^0.11.6",
20+
"phpstan/phpstan": "^0.12",
2121
"nikic/php-parser": "^4.0"
2222
},
2323
"require-dev": {
@@ -26,8 +26,8 @@
2626
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
2727
"jakub-onderka/php-parallel-lint": "^1.0",
2828
"phing/phing": "^2.16.0",
29-
"phpstan/phpstan-strict-rules": "^0.11",
30-
"phpstan/phpstan-phpunit": "^0.11",
29+
"phpstan/phpstan-strict-rules": "^0.12",
30+
"phpstan/phpstan-phpunit": "^0.12",
3131
"phpunit/phpunit": "^7.1.3",
3232
"slevomat/coding-standard": "^4.5.2"
3333
},

phpcs.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
@dataProvider,
2424
@requires
2525
"/>
26+
<property name="enableObjectTypeHint" value="false"/>
2627
</properties>
28+
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
29+
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
2730
</rule>
2831
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
2932
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/>

phpstan.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ includes:
77

88
parameters:
99
excludes_analyse:
10-
- */tests/*/data/*
11-
ignoreErrors:
12-
- '~^Parameter \#1 \$node \(.*\) of method .*Rule::processNode\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method PHPStan\\Rules\\Rule::processNode\(\)$~'
10+
- tests/*/data/*

tests/Type/BeberleiAssert/AssertTypeSpecifyingExtensionTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use PHPStan\Rules\Rule;
66

7+
/**
8+
* @extends \PHPStan\Testing\RuleTestCase<VariableTypeReportingRule>
9+
*/
710
class AssertTypeSpecifyingExtensionTest extends \PHPStan\Testing\RuleTestCase
811
{
912

@@ -174,11 +177,11 @@ public function testExtension(): void
174177
104,
175178
],
176179
[
177-
'Variable $aa is: PHPStan\Type\BeberleiAssert\Foo|string',
180+
'Variable $aa is: class-string<PHPStan\Type\BeberleiAssert\Foo>|PHPStan\Type\BeberleiAssert\Foo',
178181
107,
179182
],
180183
[
181-
'Variable $ab is: array<PHPStan\Type\BeberleiAssert\Foo>',
184+
'Variable $ab is: array', // should be array<PHPStan\Type\BeberleiAssert\Foo>
182185
110,
183186
],
184187
[

tests/Type/BeberleiAssert/ImpossibleCheckTypeMethodCallRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule;
77
use PHPStan\Rules\Rule;
88

9+
/**
10+
* @extends \PHPStan\Testing\RuleTestCase<ImpossibleCheckTypeMethodCallRule>
11+
*/
912
class ImpossibleCheckTypeMethodCallRuleTest extends \PHPStan\Testing\RuleTestCase
1013
{
1114

tests/Type/BeberleiAssert/ImpossibleCheckTypeStaticMethodCallRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule;
77
use PHPStan\Rules\Rule;
88

9+
/**
10+
* @extends \PHPStan\Testing\RuleTestCase<ImpossibleCheckTypeStaticMethodCallRule>
11+
*/
912
class ImpossibleCheckTypeStaticMethodCallRuleTest extends \PHPStan\Testing\RuleTestCase
1013
{
1114

tests/Type/BeberleiAssert/VariableTypeReportingRule.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use PhpParser\Node;
66
use PHPStan\Analyser\Scope;
77

8+
/**
9+
* @implements \PHPStan\Rules\Rule<Node\Expr\Variable>
10+
*/
811
class VariableTypeReportingRule implements \PHPStan\Rules\Rule
912
{
1013

@@ -13,11 +16,6 @@ public function getNodeType(): string
1316
return Node\Expr\Variable::class;
1417
}
1518

16-
/**
17-
* @param \PhpParser\Node\Expr\Variable $node
18-
* @param \PHPStan\Analyser\Scope $scope
19-
* @return string[] errors
20-
*/
2119
public function processNode(Node $node, Scope $scope): array
2220
{
2321
if (!is_string($node->name)) {

0 commit comments

Comments
 (0)