Skip to content

Commit

Permalink
hoa/Stream.php - remove registerShutdownFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 1, 2020
1 parent 018370f commit edd5c3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compiler/build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ function (string $filePath, string $prefix, string $content): string {
function (string $filePath, string $prefix, string $content): string {
return str_replace('private static final', 'private static', $content);
},
function (string $filePath, string $prefix, string $content): string {
if ($filePath !== 'vendor/hoa/stream/Stream.php') {
return $content;
}

$content = str_replace('\Hoa\Consistency::registerShutdownFunction(xcallable(\'Hoa\\\\Stream\\\\Stream::_Hoa_Stream\'));', '', $content);

return $content;
},
],
'whitelist' => [
'PHPStan\*',
Expand Down

0 comments on commit edd5c3c

Please sign in to comment.