diff --git a/src/Lexique/CompileHelpers.php b/src/Lexique/CompileHelpers.php index bf060f2..302fff3 100644 --- a/src/Lexique/CompileHelpers.php +++ b/src/Lexique/CompileHelpers.php @@ -131,7 +131,7 @@ protected function compileLang(string $expression): string * @param string $expression * @return string */ - protected function compileapp_trans(string $expression): string + protected function compileTrans(string $expression): string { return $this->compileHelpersStatement($expression, '%trans'); } diff --git a/tests/CompileHelpersTest.php b/tests/CompileHelpersTest.php index 2f4a6bf..3640ee8 100644 --- a/tests/CompileHelpersTest.php +++ b/tests/CompileHelpersTest.php @@ -115,7 +115,8 @@ public function testCompileTransStatement() { $compileService = $this->makeReflectionFor('compileTrans'); - $render = $compileService->invoke($this->compiler, '%app_trans("user.service")'); + $render = $compileService->invoke($this->compiler, '%trans("user.service")'); + $this->assertEquals($render, ''); }