Skip to content

Commit f6df338

Browse files
phpstan-botclaude
andcommitted
Add AnalyserIntegrationTest for bug-14596 crash
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 870a551 commit f6df338

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,13 @@ public function testBug14550(): void
15631563
$this->assertNotEmpty($errors);
15641564
}
15651565

1566+
public function testBug14596(): void
1567+
{
1568+
// crash
1569+
$errors = $this->runAnalyse(__DIR__ . '/data/bug-14596.php');
1570+
$this->assertNotEmpty($errors);
1571+
}
1572+
15661573
/**
15671574
* @param string[]|null $allAnalysedFiles
15681575
* @return list<Error>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
namespace Bug14596;
4+
5+
\PHPStan\dumpType(1, 2, 3, d: 'foo', 5);

0 commit comments

Comments
 (0)