Skip to content

Commit f570f88

Browse files
authored
Added regression tests (#5425)
1 parent 7daf288 commit f570f88

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,13 @@ public function testBug13801(): void
15061506
$this->assertNoErrors($errors);
15071507
}
15081508

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+
15091516
/**
15101517
* @param string[]|null $allAnalysedFiles
15111518
* @return list<Error>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)