diff --git a/src/Handlebars/Context.php b/src/Handlebars/Context.php index f3879b2..7ca5809 100644 --- a/src/Handlebars/Context.php +++ b/src/Handlebars/Context.php @@ -199,7 +199,7 @@ class Context throw new \InvalidArgumentException( sprintf( 'Can not find variable in context: "%s"', - var_export($variableName, true) + $variableName ) ); } @@ -221,7 +221,7 @@ class Context throw new \InvalidArgumentException( sprintf( 'Can not find variable in context: "%s"', - var_export($variableName, true) + $variableName ) ); } @@ -237,7 +237,7 @@ class Context throw new \InvalidArgumentException( sprintf( 'Can not find variable in context: "%s"', - var_export($variableName, true) + $variableName ) ); } else { diff --git a/src/Handlebars/Handlebars.php b/src/Handlebars/Handlebars.php index 417820a..20f296d 100755 --- a/src/Handlebars/Handlebars.php +++ b/src/Handlebars/Handlebars.php @@ -462,7 +462,7 @@ class Handlebars throw new \InvalidArgumentException( sprintf( 'Custom template class "%s" must extend Template', - var_export($class, true) + $class ) ); } diff --git a/src/Handlebars/Helpers.php b/src/Handlebars/Helpers.php index c223ff6..7243f92 100644 --- a/src/Handlebars/Helpers.php +++ b/src/Handlebars/Helpers.php @@ -102,7 +102,7 @@ class Helpers throw new \InvalidArgumentException( sprintf( "%s Helper is not a callable or doesn't implement the Helper interface.", - var_export($name, true) + $name ) ); } @@ -142,7 +142,7 @@ class Helpers throw new \InvalidArgumentException( sprintf( 'Unknown helper: "%s"', - var_export($name, true) + $name ) ); } @@ -182,7 +182,7 @@ class Helpers throw new \InvalidArgumentException( sprintf( 'Unknown helper: "%s"', - var_export($name, true) + $name ) ); } @@ -242,7 +242,7 @@ class Helpers throw new \InvalidArgumentException( sprintf( 'Unknown helper: "%s"', - var_export($name, true) + $name ) ); } diff --git a/src/Handlebars/Template.php b/src/Handlebars/Template.php index ed956f7..a06e3aa 100644 --- a/src/Handlebars/Template.php +++ b/src/Handlebars/Template.php @@ -409,7 +409,7 @@ class Template throw new \RuntimeException( sprintf( '"%s" is not registered as a helper', - var_export($sectionName, true) + $sectionName ) ); } @@ -469,7 +469,7 @@ class Template throw new \RuntimeException( sprintf( '"%s"" is not registered as a helper', - var_export($sectionName, true) + $sectionName ) ); }