Skip to content

Commit c71b332

Browse files
committed
Debug stringification of sub-codes in testIssetCompatibility
split: 6422e2ca10ac5017cfd273b13c1a209f1ff1dcda
1 parent b16d9db commit c71b332

2 files changed

Lines changed: 3 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
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"minimum-stability": "dev",
2222
"require": {
2323
"php": ">=5.5.0",
24+
"phug/formatter": "^1.8.1",
2425
"phug/compiler": "^1.2",
2526
"phug/util": "^1.5",
2627
"symfony/var-dumper": "^3.4 || ^4.0"

0 commit comments

Comments
 (0)