Skip to content

Commit a1dad84

Browse files
committed
fix type error
1 parent a978aa8 commit a1dad84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Rules/PHPUnit/DataProviderDataRule.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ public function processNode(Node $node, Scope $scope): array
5454
$constantArrays = [];
5555
foreach ($constArrays as $constArray) {
5656
foreach ($constArray->getValueTypes() as $valueType) {
57-
if (!$valueType->isConstantArray()->yes()) {
58-
return [];
57+
foreach($valueType->getConstantArrays() as $constValueArray) {
58+
$constantArrays[] = $constValueArray;
5959
}
60-
$constantArrays[] = $valueType;
6160
}
6261
}
6362
} elseif ($node instanceof Node\Expr\Yield_) {

0 commit comments

Comments
 (0)