Skip to content

Commit

Permalink
Fix performance issue with big appended arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 26, 2024
1 parent 53a1554 commit 537c12c
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/PHPStan/Analyser/AnalyserIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,12 @@ public function testBug11640(): void
$this->assertNoErrors($errors);
}

public function testBug11913(): void
{
$errors = $this->runAnalyse(__DIR__ . '/data/bug-11913.php');
$this->assertNoErrors($errors);
}

/**
* @param string[]|null $allAnalysedFiles
* @return Error[]
Expand Down
Loading

0 comments on commit 537c12c

Please sign in to comment.