Use more efficient AttributeParentConnectingVisitor
#1481
ci.yml
on: pull_request
Coding Guidelines
13s
Static Analysis
19s
Matrix: Tests
Annotations
8 errors
Static Analysis
Process completed with exit code 1.
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L48
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::leaveNode() should be compatible with return type (array<PhpParser\Node>|int|PhpParser\Node|null) of method PhpParser\NodeVisitorAbstract::leaveNode()
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L48
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::leaveNode() should be compatible with return type (array<PhpParser\Node>|int|PhpParser\Node|null) of method PhpParser\NodeVisitor::leaveNode()
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L39
Construct empty() is not allowed. Use more strict comparison.
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L36
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::enterNode() should be compatible with return type (array<PhpParser\Node>|int|PhpParser\Node|null) of method PhpParser\NodeVisitorAbstract::enterNode()
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L36
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::enterNode() should be compatible with return type (array<PhpParser\Node>|int|PhpParser\Node|null) of method PhpParser\NodeVisitor::enterNode()
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L31
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::beforeTraverse() should be compatible with return type (array<PhpParser\Node>|null) of method PhpParser\NodeVisitorAbstract::beforeTraverse()
|
Static Analysis:
src/StaticAnalysis/AttributeParentConnectingVisitor.php#L31
Return type (void) of method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::beforeTraverse() should be compatible with return type (array<PhpParser\Node>|null) of method PhpParser\NodeVisitor::beforeTraverse()
|