Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b34aef6

Browse files
committed
Improved compatibility
1 parent e865d17 commit b34aef6

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

‎phpcs.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
77
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/>
88
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
9+
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
910
<exclude name="Consistence.Exceptions.ExceptionDeclaration"/>
1011
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
1112
</rule>

‎phpstan.neon‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ parameters:
1616
- tests/*/request_get_content.php
1717
- tests/*/request_get_session.php
1818
- tests/*/serializer.php
19-
ignoreErrors:
20-
-
21-
message: '#should be contravariant with#'
22-
path: tests/Type/Symfony/VariableTypeReportingRule.php

‎tests/Type/Symfony/VariableTypeReportingRule.php‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use PHPStan\Rules\Rule;
99
use PHPStan\Type\VerbosityLevel;
1010

11+
/**
12+
* @implements \PHPStan\Rules\Rule<\PhpParser\Node\Expr\Variable>
13+
*/
1114
final class VariableTypeReportingRule implements Rule
1215
{
1316

@@ -16,11 +19,6 @@ public function getNodeType(): string
1619
return Variable::class;
1720
}
1821

19-
/**
20-
* @param \PhpParser\Node\Expr\Variable $node
21-
* @param \PHPStan\Analyser\Scope $scope
22-
* @return string[] errors
23-
*/
2422
public function processNode(Node $node, Scope $scope): array
2523
{
2624
if (!is_string($node->name)) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /