Skip to content

Commit edd5c3c

Browse files
committed
hoa/Stream.php - remove registerShutdownFunction
1 parent 018370f commit edd5c3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

compiler/build/scoper.inc.php

+9
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,15 @@ function (string $filePath, string $prefix, string $content): string {
180180
function (string $filePath, string $prefix, string $content): string {
181181
return str_replace('private static final', 'private static', $content);
182182
},
183+
function (string $filePath, string $prefix, string $content): string {
184+
if ($filePath !== 'vendor/hoa/stream/Stream.php') {
185+
return $content;
186+
}
187+
188+
$content = str_replace('\Hoa\Consistency::registerShutdownFunction(xcallable(\'Hoa\\\\Stream\\\\Stream::_Hoa_Stream\'));', '', $content);
189+
190+
return $content;
191+
},
183192
],
184193
'whitelist' => [
185194
'PHPStan\*',

0 commit comments

Comments
 (0)