Skip to content

Commit fff8b7b

Browse files
committed
Add PhpUnwrapString class
split: afd50e121b298f516d082a5681cb9525b105572e
1 parent 9f1fc54 commit fff8b7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Renderer/Adapter/EvalAdapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Phug\Renderer\Adapter;
44

5+
use Phug\Formatter\Util\PhpUnwrapString;
56
use Phug\Renderer\AbstractAdapter;
67

78
/**
@@ -17,7 +18,7 @@ public function display($__pug_php, array $__pug_parameters)
1718
{
1819
$this->execute(function () use ($__pug_php, &$__pug_parameters) {
1920
extract($__pug_parameters);
20-
eval('?>'.$__pug_php);
21+
eval(PhpUnwrapString::withoutOpenTag($__pug_php));
2122
}, $__pug_parameters);
2223
}
2324
}

0 commit comments

Comments
 (0)