diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesHelpers.php b/src/Illuminate/View/Compilers/Concerns/CompilesHelpers.php index 4edd61f475ee..979cadc560cf 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesHelpers.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesHelpers.php @@ -25,6 +25,17 @@ protected function compileDd($arguments) return ""; } + /** + * Compile the "dump" statements into valid PHP. + * + * @param string $arguments + * @return string + */ + protected function compileDump($arguments) + { + return ""; + } + /** * Compile the method statements into valid PHP. * diff --git a/tests/View/Blade/BladeHelpersTest.php b/tests/View/Blade/BladeHelpersTest.php index c22e6508637d..9df79cec08a7 100644 --- a/tests/View/Blade/BladeHelpersTest.php +++ b/tests/View/Blade/BladeHelpersTest.php @@ -10,5 +10,6 @@ public function testEchosAreCompiled() $this->assertEquals('', $this->compiler->compileString("@method('patch')")); $this->assertEquals('', $this->compiler->compileString('@dd($var1)')); $this->assertEquals('', $this->compiler->compileString('@dd($var1, $var2)')); + $this->assertEquals('', $this->compiler->compileString('@dump($var1, $var2)')); } }