From 0ea298c18c02e1aba272cf8c811890c905a3fe84 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Wed, 18 Dec 2024 05:20:34 +0000 Subject: [PATCH] fix: echo --- composer.json | 5 +++-- src/Lexique/CompileEchos.php | 2 +- tests/CompileEchoTest.php | 2 +- .../__snapshots__/CompileIfTest__testBlockStatement__1.txt | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 738512b..35a64f0 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,8 @@ "license": "MIT", "keywords": ["Tintin", "View Engine", "Php Template", "Franck DAKIA", "common mark", "Bow Markdown", "bow-Markdown", "Papac"], "require": { - "php": "^8.1" + "php": "^8.1", + "bowphp/framework": "^5.1" }, "authors": [ { @@ -18,7 +19,7 @@ } }, "require-dev": { - "phpunit/phpunit": "^8", + "phpunit/phpunit": "^9", "squizlabs/php_codesniffer": "3.*", "laravel/framework": "^8.0", "spatie/phpunit-snapshot-assertions": "^4.2" diff --git a/src/Lexique/CompileEchos.php b/src/Lexique/CompileEchos.php index 235db6e..776f8fa 100644 --- a/src/Lexique/CompileEchos.php +++ b/src/Lexique/CompileEchos.php @@ -45,7 +45,7 @@ protected function compileEcho(string $expression): string return $value; } - return ''; + return ''; }, $expression); return $output == $expression ? '' : $output; diff --git a/tests/CompileEchoTest.php b/tests/CompileEchoTest.php index a6dcb49..79873af 100644 --- a/tests/CompileEchoTest.php +++ b/tests/CompileEchoTest.php @@ -27,7 +27,7 @@ public function testCompileEcho() $render = $compileEcho->invoke($this->compiler, '{{ "hello world" }}'); - $this->assertEquals($render, ''); + $this->assertEquals($render, ''); } /** diff --git a/tests/__snapshots__/CompileIfTest__testBlockStatement__1.txt b/tests/__snapshots__/CompileIfTest__testBlockStatement__1.txt index ef0d88f..f68d3b4 100644 --- a/tests/__snapshots__/CompileIfTest__testBlockStatement__1.txt +++ b/tests/__snapshots__/CompileIfTest__testBlockStatement__1.txt @@ -1,8 +1,8 @@ 16): ?> - + 15 ): ?> - + - +