Skip to content

Commit

Permalink
unset variable instead of allocate empty string (thanks scrutinizer)
Browse files Browse the repository at this point in the history
This reverts commit f10451b.
  • Loading branch information
eclipxe13 committed Aug 10, 2019
1 parent f10451b commit 8faf38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PackageReader/AbstractPackageReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function fileContents()

$contents = $this->zip->getFromName($filename);
if (false === $contents || ! $this->filterContents($contents)) {
$contents = '';
unset($contents); // release memory as it was filtered
continue; // did not pass the filename filter
}

Expand Down

0 comments on commit 8faf38a

Please sign in to comment.