We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25e95c5 + f570f88 commit b5471f7Copy full SHA for b5471f7
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -1506,6 +1506,13 @@ public function testBug13801(): void
1506
$this->assertNoErrors($errors);
1507
}
1508
1509
+ public function testBug8835(): void
1510
+ {
1511
+ // endless loop crash
1512
+ $errors = $this->runAnalyse(__DIR__ . '/data/bug-8835.php');
1513
+ $this->assertNoErrors($errors);
1514
+ }
1515
+
1516
/**
1517
* @param string[]|null $allAnalysedFiles
1518
* @return list<Error>
tests/PHPStan/Analyser/data/bug-8835.php
@@ -0,0 +1,16 @@
1
+<?php
2
3
+declare(strict_types=1);
4
5
+namespace Bug8835;
6
7
+/** @template T */
8
+interface I
9
+{
10
+}
11
12
+/** @implements I<self::X> */
13
+class B implements I
14
15
+ const X = 'x';
16
0 commit comments