We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6faad63 commit 9fb15a5Copy full SHA for 9fb15a5
src/JsPhpize/JsPhpizePhug.php
@@ -67,7 +67,7 @@ public function __construct(ModuleContainerInterface $container)
67
public function compile(JsPhpize $jsPhpize, $code, $fileName)
68
{
69
try {
70
- $phpCode = trim($jsPhpize->compile($code, $fileName));
+ $phpCode = trim($jsPhpize->compile($code, $fileName ?: 'raw string'));
71
$phpCode = preg_replace('/\{\s*\}$/', '', $phpCode);
72
$phpCode = preg_replace(
73
'/^(?<!\$)\$+(\$[a-zA-Z\\\\\\x7f-\\xff][a-zA-Z0-9\\\\_\\x7f-\\xff]*\s*[=;])/',
0 commit comments