Skip to content

Commit

Permalink
Update BladeOne.php
Browse files Browse the repository at this point in the history
space symbol between '?' and '>' produced php parsing error during running cached file.

Fixing...

This is forks for me.
  • Loading branch information
Dreamer0x01 authored Oct 10, 2024
1 parent 4452463 commit 2271b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BladeOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@ protected function compileComments($value): string
$pattern = "/" . $this->contentTags[0] . "--(.*?)--" . $this->contentTags[1] . "/s";
switch ($this->commentMode) {
case 0:
return \preg_replace($pattern, $this->phpTag . '/*$1*/ ? >', $value);
return \preg_replace($pattern, $this->phpTag . '/*$1*/ ?>', $value);
case 1:
return \preg_replace($pattern, '<!-- $1 -->', $value);
default:
Expand Down

0 comments on commit 2271b3b

Please sign in to comment.