Skip to content

Commit 32096d5

Browse files
committed
free token cache when not needed anymore
1 parent 6985826 commit 32096d5

File tree

1 file changed

+1
-0
lines changed
  • PHP/CodeCoverage/Report/HTML/Node

1 file changed

+1
-0
lines changed

PHP/CodeCoverage/Report/HTML/Node/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ protected function processFunctions()
888888
{
889889
$tokens = PHP_Token_Stream_CachingFactory::get($this->getPath());
890890
$functions = $tokens->getFunctions();
891+
PHP_Token_Stream_CachingFactory::unsetFromCache($this->getPath());
891892
unset($tokens);
892893

893894
if (count($functions) > 0 && !isset($this->classes['*'])) {

0 commit comments

Comments
 (0)