Skip to content

Commit 3ca8e19

Browse files
phpstan-botclaude
andcommitted
Remove duplicate test file, reuse NSRT test data for ArrayValuesRuleTest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0609f83 commit 3ca8e19

3 files changed

Lines changed: 2 additions & 46 deletions

File tree

tests/PHPStan/Analyser/nsrt/bug-13629.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ function test(array $xsdFiles, array $groupedByNamespace, array $extraNamespaces
2929
}
3030
// After assigning with string keys ($viewHelper['name']), $xsdFiles[$xmlNamespace] should NOT be a list
3131
assertType('array<int<0, max>, array{xmlNamespace: string, namespace: string, name: string}>', $xsdFiles[$xmlNamespace]);
32+
$xsdFiles[$xmlNamespace] = array_values($xsdFiles[$xmlNamespace]);
3233
}
3334
}

tests/PHPStan/Rules/Functions/ArrayValuesRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testFile(): void
9191

9292
public function testBug13629(): void
9393
{
94-
$this->analyse([__DIR__ . '/data/bug-13629.php'], []);
94+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-13629.php'], []);
9595
}
9696

9797
}

tests/PHPStan/Rules/Functions/data/bug-13629.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)