Skip to content

Use more efficient AttributeParentConnectingVisitor #1481

Use more efficient AttributeParentConnectingVisitor

Use more efficient AttributeParentConnectingVisitor #1481

Triggered via pull request April 26, 2025 17:22
Status Failure
Total duration 1m 21s
Artifacts

ci.yml

on: pull_request
Coding Guidelines
13s
Coding Guidelines
Static Analysis
19s
Static Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

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()