Skip to content

Use more efficient AttributeParentConnectingVisitor #1482

Use more efficient AttributeParentConnectingVisitor

Use more efficient AttributeParentConnectingVisitor #1482

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

ci.yml

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

Annotations

9 errors
Coding Guidelines
Process completed with exit code 8.
Static Analysis
Process completed with exit code 1.
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L50
Method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::leaveNode() should return array<PhpParser\Node>|int|PhpParser\Node|null but return statement is missing.
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L48
Out of 738 possible return types, only 735 - 99.5 % actually have it. Add more return types to get over 100 %
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L45
Method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::enterNode() should return array<PhpParser\Node>|int|PhpParser\Node|null but return statement is missing.
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L39
Construct empty() is not allowed. Use more strict comparison.
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L36
Out of 738 possible return types, only 735 - 99.5 % actually have it. Add more return types to get over 100 %
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L33
Method SebastianBergmann\CodeCoverage\StaticAnalysis\AttributeParentConnectingVisitor::beforeTraverse() should return array<PhpParser\Node>|null but return statement is missing.
Static Analysis: src/StaticAnalysis/AttributeParentConnectingVisitor.php#L31
Out of 738 possible return types, only 735 - 99.5 % actually have it. Add more return types to get over 100 %