We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6895e54 commit 95c8f72Copy full SHA for 95c8f72
2 files changed
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -1499,6 +1499,13 @@ public function testBug14324(): void
1499
$this->assertNoErrors($errors);
1500
}
1501
1502
+ public function testBug13801(): void
1503
+ {
1504
+ // endless loop crash
1505
+ $errors = $this->runAnalyse(__DIR__ . '/data/bug-13801.php');
1506
+ $this->assertNoErrors($errors);
1507
+ }
1508
+
1509
/**
1510
* @param string[]|null $allAnalysedFiles
1511
* @return list<Error>
tests/PHPStan/Analyser/data/bug-13801.php
@@ -0,0 +1,19 @@
1
+<?php
2
3
+declare(strict_types=1);
4
5
+namespace Bug13801;
6
7
+/**
8
+ * @template TValue of object
9
+ */
10
+interface Cast
11
+{
12
+}
13
14
15
+ * @template TCast of Cast<static>
16
17
+interface Castable
18
19
0 commit comments