Skip to content

Commit 9fd0e4c

Browse files
aarondfrancisclaude
andcommitted
Remove redundant assertIsArray after return type narrowing
The buildCommandArray return type is now always array (no longer array|string), so phpstan correctly flags the assertion as tautological. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bd49f59 commit 9fd0e4c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/Unit/ManagesProcessTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function buildWithDimensions(): array
3030

3131
$result = $command->buildWithDimensions();
3232

33-
$this->assertIsArray($result['built']);
3433
$this->assertSame('bash', $result['built'][0]);
3534
$this->assertSame('-lc', $result['built'][1]);
3635
$this->assertStringContainsString(

0 commit comments

Comments
 (0)