Skip to content

Commit a4c37b9

Browse files
committed
Callback: removed workaround for HHVM
1 parent 3f017f0 commit a4c37b9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Utils/Callback.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ public static function invokeArgs($callable, array $args = [])
8989
public static function invokeSafe(string $function, array $args, callable $onError)
9090
{
9191
$prev = set_error_handler(function ($severity, $message, $file) use ($onError, &$prev, $function) {
92-
if ($file === '' && defined('HHVM_VERSION')) { // https://github.com/facebook/hhvm/issues/4625
93-
$file = func_get_arg(5)[1]['file'];
94-
}
9592
if ($file === __FILE__) {
9693
$msg = preg_replace("#^$function\(.*?\): #", '', $message);
9794
if ($onError($msg, $severity) !== false) {

0 commit comments

Comments
 (0)