Skip to content

Commit

Permalink
more php8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
divinity76 committed Oct 6, 2023
1 parent be1f9c9 commit 050137c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/standaloneGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$evalPosition = strpos ( $fullsource, $evalPositionString );
$fullsourcePart1 = substr ( $fullsource, 0, $evalPosition );
$fullsourcePart2 = substr ( $fullsource, $evalPosition );
$fullsource = $fullsourcePart1 .= "\ndefine('IS_STANDALONE',true,true);\n" . $fullsourcePart2;
$fullsource = $fullsourcePart1 .= "\ndefine('IS_STANDALONE',true);\n" . $fullsourcePart2;
if ($evalPosition === false) {
throw new Exception ( 'cannot find ' . $evalPositionString );
}
Expand Down

0 comments on commit 050137c

Please sign in to comment.