Skip to content

Commit 7cac56f

Browse files
Sean MolenaarSean Molenaar
authored andcommitted
Fixing runkit return error
1 parent 67c60c7 commit 7cac56f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPDraft/Core/BaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function __runkit_mock_function($name, $return)
7676
runkit_function_copy($name, $name . self::FUNCTION_ID);
7777
}
7878

79-
runkit_function_redefine($name, '', 'return '.$return.';');
79+
runkit_function_redefine($name, '', 'return '.(is_string($return)?'"'.$return.'"':$return).'";');
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)