diff --git a/extra/string-extra/StringExtension.php b/extra/string-extra/StringExtension.php index db88ca922..7b5d00492 100644 --- a/extra/string-extra/StringExtension.php +++ b/extra/string-extra/StringExtension.php @@ -12,8 +12,8 @@ namespace Twig\Extra\String; use Symfony\Component\String\AbstractUnicodeString; -use Symfony\Component\String\Slugger\SluggerInterface; use Symfony\Component\String\Slugger\AsciiSlugger; +use Symfony\Component\String\Slugger\SluggerInterface; use Symfony\Component\String\UnicodeString; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; @@ -26,7 +26,7 @@ final class StringExtension extends AbstractExtension { $this->slugger = $slugger ?: new AsciiSlugger(); } - + public function getFilters() { return [ diff --git a/extra/twig-extra-bundle/Resources/config/markdown.php b/extra/twig-extra-bundle/Resources/config/markdown.php index dd5774d03..665542a53 100644 --- a/extra/twig-extra-bundle/Resources/config/markdown.php +++ b/extra/twig-extra-bundle/Resources/config/markdown.php @@ -16,7 +16,7 @@ use Twig\Extra\Markdown\MarkdownExtension; use Twig\Extra\Markdown\MarkdownRuntime; return static function (ContainerConfigurator $container) { - $service = function_exists('Symfony\Component\DependencyInjection\Loader\Configurator\service') ? 'Symfony\Component\DependencyInjection\Loader\Configurator\service' : 'Symfony\Component\DependencyInjection\Loader\Configurator\ref'; + $service = \function_exists('Symfony\Component\DependencyInjection\Loader\Configurator\service') ? 'Symfony\Component\DependencyInjection\Loader\Configurator\service' : 'Symfony\Component\DependencyInjection\Loader\Configurator\ref'; $container->services() ->set('twig.extension.markdown', MarkdownExtension::class) ->tag('twig.extension') diff --git a/lib/Twig/BaseNodeVisitor.php b/lib/Twig/BaseNodeVisitor.php index e1191f9ed..f44b02c51 100644 --- a/lib/Twig/BaseNodeVisitor.php +++ b/lib/Twig/BaseNodeVisitor.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\AbstractNodeVisitor; class_exists('Twig\NodeVisitor\AbstractNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_BaseNodeVisitor" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\AbstractNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_BaseNodeVisitor" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\AbstractNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\AbstractNodeVisitor" instead */ class Twig_BaseNodeVisitor extends AbstractNodeVisitor { diff --git a/lib/Twig/Cache/Filesystem.php b/lib/Twig/Cache/Filesystem.php index 5c7627c6b..29dacd420 100644 --- a/lib/Twig/Cache/Filesystem.php +++ b/lib/Twig/Cache/Filesystem.php @@ -4,9 +4,9 @@ use Twig\Cache\FilesystemCache; class_exists('Twig\Cache\FilesystemCache'); -@trigger_error(sprintf('Using the "Twig_Cache_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Cache\FilesystemCache" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Cache_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Cache\FilesystemCache" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Cache\FilesystemCache" instead */ class Twig_Cache_Filesystem extends FilesystemCache { diff --git a/lib/Twig/Cache/Null.php b/lib/Twig/Cache/Null.php index 092a2bea7..1ea298a78 100644 --- a/lib/Twig/Cache/Null.php +++ b/lib/Twig/Cache/Null.php @@ -4,9 +4,9 @@ use Twig\Cache\NullCache; class_exists('Twig\Cache\NullCache'); -@trigger_error(sprintf('Using the "Twig_Cache_Null" class is deprecated since Twig version 2.7, use "Twig\Cache\NullCache" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Cache_Null" class is deprecated since Twig version 2.7, use "Twig\Cache\NullCache" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Cache\NullCache" instead */ class Twig_Cache_Null extends NullCache { diff --git a/lib/Twig/CacheInterface.php b/lib/Twig/CacheInterface.php index 3f5a45855..764d82452 100644 --- a/lib/Twig/CacheInterface.php +++ b/lib/Twig/CacheInterface.php @@ -4,9 +4,9 @@ use Twig\Cache\CacheInterface; class_exists('Twig\Cache\CacheInterface'); -@trigger_error(sprintf('Using the "Twig_CacheInterface" class is deprecated since Twig version 2.7, use "Twig\Cache\CacheInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_CacheInterface" class is deprecated since Twig version 2.7, use "Twig\Cache\CacheInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Cache\CacheInterface" instead */ class Twig_CacheInterface extends CacheInterface { diff --git a/lib/Twig/Compiler.php b/lib/Twig/Compiler.php index d13d2f23b..f8fa4244a 100644 --- a/lib/Twig/Compiler.php +++ b/lib/Twig/Compiler.php @@ -4,9 +4,9 @@ use Twig\Compiler; class_exists('Twig\Compiler'); -@trigger_error(sprintf('Using the "Twig_Compiler" class is deprecated since Twig version 2.7, use "Twig\Compiler" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Compiler" class is deprecated since Twig version 2.7, use "Twig\Compiler" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Compiler" instead */ class Twig_Compiler extends Compiler { diff --git a/lib/Twig/ContainerRuntimeLoader.php b/lib/Twig/ContainerRuntimeLoader.php index 3225057dc..6be55ffc7 100644 --- a/lib/Twig/ContainerRuntimeLoader.php +++ b/lib/Twig/ContainerRuntimeLoader.php @@ -4,9 +4,9 @@ use Twig\RuntimeLoader\ContainerRuntimeLoader; class_exists('Twig\RuntimeLoader\ContainerRuntimeLoader'); -@trigger_error(sprintf('Using the "Twig_ContainerRuntimeLoader" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\ContainerRuntimeLoader" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_ContainerRuntimeLoader" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\ContainerRuntimeLoader" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\RuntimeLoader\ContainerRuntimeLoader" instead */ class Twig_ContainerRuntimeLoader extends ContainerRuntimeLoader { diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 1bfb3695e..f1b45260a 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -4,9 +4,9 @@ use Twig\Environment; class_exists('Twig\Environment'); -@trigger_error(sprintf('Using the "Twig_Environment" class is deprecated since Twig version 2.7, use "Twig\Environment" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Environment" class is deprecated since Twig version 2.7, use "Twig\Environment" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Environment" instead */ class Twig_Environment extends Environment { diff --git a/lib/Twig/Error.php b/lib/Twig/Error.php index 3f49877d8..b36f7ca1e 100644 --- a/lib/Twig/Error.php +++ b/lib/Twig/Error.php @@ -4,9 +4,9 @@ use Twig\Error\Error; class_exists('Twig\Error\Error'); -@trigger_error(sprintf('Using the "Twig_Error" class is deprecated since Twig version 2.7, use "Twig\Error\Error" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Error" class is deprecated since Twig version 2.7, use "Twig\Error\Error" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Error\Error" instead */ class Twig_Error extends Error { diff --git a/lib/Twig/Error/Loader.php b/lib/Twig/Error/Loader.php index 37522d780..d12aa0767 100644 --- a/lib/Twig/Error/Loader.php +++ b/lib/Twig/Error/Loader.php @@ -4,9 +4,9 @@ use Twig\Error\LoaderError; class_exists('Twig\Error\LoaderError'); -@trigger_error(sprintf('Using the "Twig_Error_Loader" class is deprecated since Twig version 2.7, use "Twig\Error\LoaderError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Error_Loader" class is deprecated since Twig version 2.7, use "Twig\Error\LoaderError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Error\LoaderError" instead */ class Twig_Error_Loader extends LoaderError { diff --git a/lib/Twig/Error/Runtime.php b/lib/Twig/Error/Runtime.php index 48ba0a7ea..33d46e724 100644 --- a/lib/Twig/Error/Runtime.php +++ b/lib/Twig/Error/Runtime.php @@ -4,9 +4,9 @@ use Twig\Error\RuntimeError; class_exists('Twig\Error\RuntimeError'); -@trigger_error(sprintf('Using the "Twig_Error_Runtime" class is deprecated since Twig version 2.7, use "Twig\Error\RuntimeError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Error_Runtime" class is deprecated since Twig version 2.7, use "Twig\Error\RuntimeError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Error\RuntimeError" instead */ class Twig_Error_Runtime extends RuntimeError { diff --git a/lib/Twig/Error/Syntax.php b/lib/Twig/Error/Syntax.php index a70dd164d..0bd2a0f91 100644 --- a/lib/Twig/Error/Syntax.php +++ b/lib/Twig/Error/Syntax.php @@ -4,9 +4,9 @@ use Twig\Error\SyntaxError; class_exists('Twig\Error\SyntaxError'); -@trigger_error(sprintf('Using the "Twig_Error_Syntax" class is deprecated since Twig version 2.7, use "Twig\Error\SyntaxError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Error_Syntax" class is deprecated since Twig version 2.7, use "Twig\Error\SyntaxError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Error\SyntaxError" instead */ class Twig_Error_Syntax extends SyntaxError { diff --git a/lib/Twig/ExistsLoaderInterface.php b/lib/Twig/ExistsLoaderInterface.php index d4023f520..32f20d4b4 100644 --- a/lib/Twig/ExistsLoaderInterface.php +++ b/lib/Twig/ExistsLoaderInterface.php @@ -4,9 +4,9 @@ use Twig\Loader\ExistsLoaderInterface; class_exists('Twig\Loader\ExistsLoaderInterface'); -@trigger_error(sprintf('Using the "Twig_ExistsLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\ExistsLoaderInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_ExistsLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\ExistsLoaderInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\ExistsLoaderInterface" instead */ class Twig_ExistsLoaderInterface extends ExistsLoaderInterface { diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 4f4c175c8..b3d0a5628 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -4,9 +4,9 @@ use Twig\ExpressionParser; class_exists('Twig\ExpressionParser'); -@trigger_error(sprintf('Using the "Twig_ExpressionParser" class is deprecated since Twig version 2.7, use "Twig\ExpressionParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_ExpressionParser" class is deprecated since Twig version 2.7, use "Twig\ExpressionParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\ExpressionParser" instead */ class Twig_ExpressionParser extends ExpressionParser { diff --git a/lib/Twig/Extension.php b/lib/Twig/Extension.php index 3d4356cb3..865243d66 100644 --- a/lib/Twig/Extension.php +++ b/lib/Twig/Extension.php @@ -4,9 +4,9 @@ use Twig\Extension\AbstractExtension; class_exists('Twig\Extension\AbstractExtension'); -@trigger_error(sprintf('Using the "Twig_Extension" class is deprecated since Twig version 2.7, use "Twig\Extension\AbstractExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension" class is deprecated since Twig version 2.7, use "Twig\Extension\AbstractExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\AbstractExtension" instead */ class Twig_Extension extends AbstractExtension { diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index ad01942f0..dd4e86641 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -4,9 +4,9 @@ use Twig\Extension\CoreExtension; class_exists('Twig\Extension\CoreExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Core" class is deprecated since Twig version 2.7, use "Twig\Extension\CoreExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Core" class is deprecated since Twig version 2.7, use "Twig\Extension\CoreExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\CoreExtension" instead */ class Twig_Extension_Core extends CoreExtension { diff --git a/lib/Twig/Extension/Debug.php b/lib/Twig/Extension/Debug.php index deee0e46b..6b5713ae0 100644 --- a/lib/Twig/Extension/Debug.php +++ b/lib/Twig/Extension/Debug.php @@ -4,9 +4,9 @@ use Twig\Extension\DebugExtension; class_exists('Twig\Extension\DebugExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Debug" class is deprecated since Twig version 2.7, use "Twig\Extension\DebugExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Debug" class is deprecated since Twig version 2.7, use "Twig\Extension\DebugExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\DebugExtension" instead */ class Twig_Extension_Debug extends DebugExtension { diff --git a/lib/Twig/Extension/Escaper.php b/lib/Twig/Extension/Escaper.php index f56c5c91b..7a306e349 100644 --- a/lib/Twig/Extension/Escaper.php +++ b/lib/Twig/Extension/Escaper.php @@ -4,9 +4,9 @@ use Twig\Extension\EscaperExtension; class_exists('Twig\Extension\EscaperExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Escaper" class is deprecated since Twig version 2.7, use "Twig\Extension\EscaperExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Escaper" class is deprecated since Twig version 2.7, use "Twig\Extension\EscaperExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\EscaperExtension" instead */ class Twig_Extension_Escaper extends EscaperExtension { diff --git a/lib/Twig/Extension/GlobalsInterface.php b/lib/Twig/Extension/GlobalsInterface.php index a8d19a24c..f4778bff2 100644 --- a/lib/Twig/Extension/GlobalsInterface.php +++ b/lib/Twig/Extension/GlobalsInterface.php @@ -4,9 +4,9 @@ use Twig\Extension\GlobalsInterface; class_exists('Twig\Extension\GlobalsInterface'); -@trigger_error(sprintf('Using the "Twig_Extension_GlobalsInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\GlobalsInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_GlobalsInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\GlobalsInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\GlobalsInterface" instead */ class Twig_Extension_GlobalsInterface extends GlobalsInterface { diff --git a/lib/Twig/Extension/InitRuntimeInterface.php b/lib/Twig/Extension/InitRuntimeInterface.php index bc926d734..cba863d50 100644 --- a/lib/Twig/Extension/InitRuntimeInterface.php +++ b/lib/Twig/Extension/InitRuntimeInterface.php @@ -4,9 +4,9 @@ use Twig\Extension\InitRuntimeInterface; class_exists('Twig\Extension\InitRuntimeInterface'); -@trigger_error(sprintf('Using the "Twig_Extension_InitRuntimeInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\InitRuntimeInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_InitRuntimeInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\InitRuntimeInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\InitRuntimeInterface" instead */ class Twig_Extension_InitRuntimeInterface extends InitRuntimeInterface { diff --git a/lib/Twig/Extension/Optimizer.php b/lib/Twig/Extension/Optimizer.php index de4fdfe9a..8f084797b 100644 --- a/lib/Twig/Extension/Optimizer.php +++ b/lib/Twig/Extension/Optimizer.php @@ -4,9 +4,9 @@ use Twig\Extension\OptimizerExtension; class_exists('Twig\Extension\OptimizerExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Optimizer" class is deprecated since Twig version 2.7, use "Twig\Extension\OptimizerExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Optimizer" class is deprecated since Twig version 2.7, use "Twig\Extension\OptimizerExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\OptimizerExtension" instead */ class Twig_Extension_Optimizer extends OptimizerExtension { diff --git a/lib/Twig/Extension/Profiler.php b/lib/Twig/Extension/Profiler.php index 22879c9af..bcc491983 100644 --- a/lib/Twig/Extension/Profiler.php +++ b/lib/Twig/Extension/Profiler.php @@ -4,9 +4,9 @@ use Twig\Extension\ProfilerExtension; class_exists('Twig\Extension\ProfilerExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Profiler" class is deprecated since Twig version 2.7, use "Twig\Extension\ProfilerExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Profiler" class is deprecated since Twig version 2.7, use "Twig\Extension\ProfilerExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\ProfilerExtension" instead */ class Twig_Extension_Profiler extends ProfilerExtension { diff --git a/lib/Twig/Extension/Sandbox.php b/lib/Twig/Extension/Sandbox.php index 400d17501..7594019d3 100644 --- a/lib/Twig/Extension/Sandbox.php +++ b/lib/Twig/Extension/Sandbox.php @@ -4,9 +4,9 @@ use Twig\Extension\SandboxExtension; class_exists('Twig\Extension\SandboxExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Sandbox" class is deprecated since Twig version 2.7, use "Twig\Extension\SandboxExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Sandbox" class is deprecated since Twig version 2.7, use "Twig\Extension\SandboxExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\SandboxExtension" instead */ class Twig_Extension_Sandbox extends SandboxExtension { diff --git a/lib/Twig/Extension/Staging.php b/lib/Twig/Extension/Staging.php index bd200a431..6a0ebdfd7 100644 --- a/lib/Twig/Extension/Staging.php +++ b/lib/Twig/Extension/Staging.php @@ -4,9 +4,9 @@ use Twig\Extension\StagingExtension; class_exists('Twig\Extension\StagingExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_Staging" class is deprecated since Twig version 2.7, use "Twig\Extension\StagingExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_Staging" class is deprecated since Twig version 2.7, use "Twig\Extension\StagingExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\StagingExtension" instead */ class Twig_Extension_Staging extends StagingExtension { diff --git a/lib/Twig/Extension/StringLoader.php b/lib/Twig/Extension/StringLoader.php index f77c20330..5f4d59463 100644 --- a/lib/Twig/Extension/StringLoader.php +++ b/lib/Twig/Extension/StringLoader.php @@ -4,9 +4,9 @@ use Twig\Extension\StringLoaderExtension; class_exists('Twig\Extension\StringLoaderExtension'); -@trigger_error(sprintf('Using the "Twig_Extension_StringLoader" class is deprecated since Twig version 2.7, use "Twig\Extension\StringLoaderExtension" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Extension_StringLoader" class is deprecated since Twig version 2.7, use "Twig\Extension\StringLoaderExtension" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\StringLoaderExtension" instead */ class Twig_Extension_StringLoader extends StringLoaderExtension { diff --git a/lib/Twig/ExtensionInterface.php b/lib/Twig/ExtensionInterface.php index 4d5d2491e..2554c80f0 100644 --- a/lib/Twig/ExtensionInterface.php +++ b/lib/Twig/ExtensionInterface.php @@ -4,9 +4,9 @@ use Twig\Extension\ExtensionInterface; class_exists('Twig\Extension\ExtensionInterface'); -@trigger_error(sprintf('Using the "Twig_ExtensionInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\ExtensionInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_ExtensionInterface" class is deprecated since Twig version 2.7, use "Twig\Extension\ExtensionInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Extension\ExtensionInterface" instead */ class Twig_ExtensionInterface extends ExtensionInterface { diff --git a/lib/Twig/ExtensionSet.php b/lib/Twig/ExtensionSet.php index 6541fd683..54dcc72a0 100644 --- a/lib/Twig/ExtensionSet.php +++ b/lib/Twig/ExtensionSet.php @@ -4,9 +4,9 @@ use Twig\ExtensionSet; class_exists('Twig\ExtensionSet'); -@trigger_error(sprintf('Using the "Twig_ExtensionSet" class is deprecated since Twig version 2.7, use "Twig\ExtensionSet" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_ExtensionSet" class is deprecated since Twig version 2.7, use "Twig\ExtensionSet" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\ExtensionSet" instead */ class Twig_ExtensionSet extends ExtensionSet { diff --git a/lib/Twig/FactoryRuntimeLoader.php b/lib/Twig/FactoryRuntimeLoader.php index dc3efaaf0..a47fa9937 100644 --- a/lib/Twig/FactoryRuntimeLoader.php +++ b/lib/Twig/FactoryRuntimeLoader.php @@ -4,9 +4,9 @@ use Twig\RuntimeLoader\FactoryRuntimeLoader; class_exists('Twig\RuntimeLoader\FactoryRuntimeLoader'); -@trigger_error(sprintf('Using the "Twig_FactoryRuntimeLoader" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\FactoryRuntimeLoader" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_FactoryRuntimeLoader" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\FactoryRuntimeLoader" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\RuntimeLoader\FactoryRuntimeLoader" instead */ class Twig_FactoryRuntimeLoader extends FactoryRuntimeLoader { diff --git a/lib/Twig/FileExtensionEscapingStrategy.php b/lib/Twig/FileExtensionEscapingStrategy.php index 33cfe9e61..bea213f7a 100644 --- a/lib/Twig/FileExtensionEscapingStrategy.php +++ b/lib/Twig/FileExtensionEscapingStrategy.php @@ -4,9 +4,9 @@ use Twig\FileExtensionEscapingStrategy; class_exists('Twig\FileExtensionEscapingStrategy'); -@trigger_error(sprintf('Using the "Twig_FileExtensionEscapingStrategy" class is deprecated since Twig version 2.7, use "Twig\FileExtensionEscapingStrategy" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_FileExtensionEscapingStrategy" class is deprecated since Twig version 2.7, use "Twig\FileExtensionEscapingStrategy" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\FileExtensionEscapingStrategy" instead */ class Twig_FileExtensionEscapingStrategy extends FileExtensionEscapingStrategy { diff --git a/lib/Twig/Filter.php b/lib/Twig/Filter.php index 52bb4d678..22ca5fa9e 100644 --- a/lib/Twig/Filter.php +++ b/lib/Twig/Filter.php @@ -4,9 +4,9 @@ use Twig\TwigFilter; class_exists('Twig\TwigFilter'); -@trigger_error(sprintf('Using the "Twig_Filter" class is deprecated since Twig version 2.7, use "Twig\TwigFilter" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Filter" class is deprecated since Twig version 2.7, use "Twig\TwigFilter" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigFilter" instead */ class Twig_Filter extends TwigFilter { diff --git a/lib/Twig/Function.php b/lib/Twig/Function.php index f95b53ffb..f345b2773 100644 --- a/lib/Twig/Function.php +++ b/lib/Twig/Function.php @@ -4,9 +4,9 @@ use Twig\TwigFunction; class_exists('Twig\TwigFunction'); -@trigger_error(sprintf('Using the "Twig_Function" class is deprecated since Twig version 2.7, use "Twig\TwigFunction" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Function" class is deprecated since Twig version 2.7, use "Twig\TwigFunction" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigFunction" instead */ class Twig_Function extends TwigFunction { diff --git a/lib/Twig/Lexer.php b/lib/Twig/Lexer.php index 421e3b2b4..fde2d9198 100644 --- a/lib/Twig/Lexer.php +++ b/lib/Twig/Lexer.php @@ -4,9 +4,9 @@ use Twig\Lexer; class_exists('Twig\Lexer'); -@trigger_error(sprintf('Using the "Twig_Lexer" class is deprecated since Twig version 2.7, use "Twig\Lexer" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Lexer" class is deprecated since Twig version 2.7, use "Twig\Lexer" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Lexer" instead */ class Twig_Lexer extends Lexer { diff --git a/lib/Twig/Loader/Array.php b/lib/Twig/Loader/Array.php index 461e394d1..9f6a918cb 100644 --- a/lib/Twig/Loader/Array.php +++ b/lib/Twig/Loader/Array.php @@ -4,9 +4,9 @@ use Twig\Loader\ArrayLoader; class_exists('Twig\Loader\ArrayLoader'); -@trigger_error(sprintf('Using the "Twig_Loader_Array" class is deprecated since Twig version 2.7, use "Twig\Loader\ArrayLoader" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Loader_Array" class is deprecated since Twig version 2.7, use "Twig\Loader\ArrayLoader" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\ArrayLoader" instead */ class Twig_Loader_Array extends ArrayLoader { diff --git a/lib/Twig/Loader/Chain.php b/lib/Twig/Loader/Chain.php index 948959f35..39efb8e51 100644 --- a/lib/Twig/Loader/Chain.php +++ b/lib/Twig/Loader/Chain.php @@ -4,9 +4,9 @@ use Twig\Loader\ChainLoader; class_exists('Twig\Loader\ChainLoader'); -@trigger_error(sprintf('Using the "Twig_Loader_Chain" class is deprecated since Twig version 2.7, use "Twig\Loader\ChainLoader" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Loader_Chain" class is deprecated since Twig version 2.7, use "Twig\Loader\ChainLoader" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\ChainLoader" instead */ class Twig_Loader_Chain extends ChainLoader { diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index 16d4d506a..e528fc25a 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -4,9 +4,9 @@ use Twig\Loader\FilesystemLoader; class_exists('Twig\Loader\FilesystemLoader'); -@trigger_error(sprintf('Using the "Twig_Loader_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Loader\FilesystemLoader" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Loader_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Loader\FilesystemLoader" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\FilesystemLoader" instead */ class Twig_Loader_Filesystem extends FilesystemLoader { diff --git a/lib/Twig/LoaderInterface.php b/lib/Twig/LoaderInterface.php index cabd69e3a..835cf1e3b 100644 --- a/lib/Twig/LoaderInterface.php +++ b/lib/Twig/LoaderInterface.php @@ -4,9 +4,9 @@ use Twig\Loader\LoaderInterface; class_exists('Twig\Loader\LoaderInterface'); -@trigger_error(sprintf('Using the "Twig_LoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\LoaderInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_LoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\LoaderInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\LoaderInterface" instead */ class Twig_LoaderInterface extends LoaderInterface { diff --git a/lib/Twig/Markup.php b/lib/Twig/Markup.php index f6d8eb270..2902ffd64 100644 --- a/lib/Twig/Markup.php +++ b/lib/Twig/Markup.php @@ -4,9 +4,9 @@ use Twig\Markup; class_exists('Twig\Markup'); -@trigger_error(sprintf('Using the "Twig_Markup" class is deprecated since Twig version 2.7, use "Twig\Markup" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Markup" class is deprecated since Twig version 2.7, use "Twig\Markup" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Markup" instead */ class Twig_Markup extends Markup { diff --git a/lib/Twig/Node.php b/lib/Twig/Node.php index 8b5dc5250..7aa38a807 100644 --- a/lib/Twig/Node.php +++ b/lib/Twig/Node.php @@ -4,9 +4,9 @@ use Twig\Node\Node; class_exists('Twig\Node\Node'); -@trigger_error(sprintf('Using the "Twig_Node" class is deprecated since Twig version 2.7, use "Twig\Node\Node" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node" class is deprecated since Twig version 2.7, use "Twig\Node\Node" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Node" instead */ class Twig_Node extends Node { diff --git a/lib/Twig/Node/AutoEscape.php b/lib/Twig/Node/AutoEscape.php index 34006acc0..5fe0e3808 100644 --- a/lib/Twig/Node/AutoEscape.php +++ b/lib/Twig/Node/AutoEscape.php @@ -4,9 +4,9 @@ use Twig\Node\AutoEscapeNode; class_exists('Twig\Node\AutoEscapeNode'); -@trigger_error(sprintf('Using the "Twig_Node_AutoEscape" class is deprecated since Twig version 2.7, use "Twig\Node\AutoEscapeNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_AutoEscape" class is deprecated since Twig version 2.7, use "Twig\Node\AutoEscapeNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\AutoEscapeNode" instead */ class Twig_Node_AutoEscape extends AutoEscapeNode { diff --git a/lib/Twig/Node/Block.php b/lib/Twig/Node/Block.php index 51f6ff80c..f9c10d6b1 100644 --- a/lib/Twig/Node/Block.php +++ b/lib/Twig/Node/Block.php @@ -4,9 +4,9 @@ use Twig\Node\BlockNode; class_exists('Twig\Node\BlockNode'); -@trigger_error(sprintf('Using the "Twig_Node_Block" class is deprecated since Twig version 2.7, use "Twig\Node\BlockNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Block" class is deprecated since Twig version 2.7, use "Twig\Node\BlockNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\BlockNode" instead */ class Twig_Node_Block extends BlockNode { diff --git a/lib/Twig/Node/BlockReference.php b/lib/Twig/Node/BlockReference.php index 3e729a082..9cd18d31e 100644 --- a/lib/Twig/Node/BlockReference.php +++ b/lib/Twig/Node/BlockReference.php @@ -4,9 +4,9 @@ use Twig\Node\BlockReferenceNode; class_exists('Twig\Node\BlockReferenceNode'); -@trigger_error(sprintf('Using the "Twig_Node_BlockReference" class is deprecated since Twig version 2.7, use "Twig\Node\BlockReferenceNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_BlockReference" class is deprecated since Twig version 2.7, use "Twig\Node\BlockReferenceNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\BlockReferenceNode" instead */ class Twig_Node_BlockReference extends BlockReferenceNode { diff --git a/lib/Twig/Node/Body.php b/lib/Twig/Node/Body.php index e8e6042f2..54523c412 100644 --- a/lib/Twig/Node/Body.php +++ b/lib/Twig/Node/Body.php @@ -4,9 +4,9 @@ use Twig\Node\BodyNode; class_exists('Twig\Node\BodyNode'); -@trigger_error(sprintf('Using the "Twig_Node_Body" class is deprecated since Twig version 2.7, use "Twig\Node\BodyNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Body" class is deprecated since Twig version 2.7, use "Twig\Node\BodyNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\BodyNode" instead */ class Twig_Node_Body extends BodyNode { diff --git a/lib/Twig/Node/CheckSecurity.php b/lib/Twig/Node/CheckSecurity.php index efc5f1aad..a9cd58a63 100644 --- a/lib/Twig/Node/CheckSecurity.php +++ b/lib/Twig/Node/CheckSecurity.php @@ -4,9 +4,9 @@ use Twig\Node\CheckSecurityNode; class_exists('Twig\Node\CheckSecurityNode'); -@trigger_error(sprintf('Using the "Twig_Node_CheckSecurity" class is deprecated since Twig version 2.7, use "Twig\Node\CheckSecurityNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_CheckSecurity" class is deprecated since Twig version 2.7, use "Twig\Node\CheckSecurityNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\CheckSecurityNode" instead */ class Twig_Node_CheckSecurity extends CheckSecurityNode { diff --git a/lib/Twig/Node/Deprecated.php b/lib/Twig/Node/Deprecated.php index 70af6f2ac..02c5a335f 100644 --- a/lib/Twig/Node/Deprecated.php +++ b/lib/Twig/Node/Deprecated.php @@ -4,9 +4,9 @@ use Twig\Node\DeprecatedNode; class_exists('Twig\Node\DeprecatedNode'); -@trigger_error(sprintf('Using the "Twig_Node_Deprecated" class is deprecated since Twig version 2.7, use "Twig\Node\DeprecatedNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Deprecated" class is deprecated since Twig version 2.7, use "Twig\Node\DeprecatedNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\DeprecatedNode" instead */ class Twig_Node_Deprecated extends DeprecatedNode { diff --git a/lib/Twig/Node/Do.php b/lib/Twig/Node/Do.php index 70267a225..eb831aa44 100644 --- a/lib/Twig/Node/Do.php +++ b/lib/Twig/Node/Do.php @@ -4,9 +4,9 @@ use Twig\Node\DoNode; class_exists('Twig\Node\DoNode'); -@trigger_error(sprintf('Using the "Twig_Node_Do" class is deprecated since Twig version 2.7, use "Twig\Node\DoNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Do" class is deprecated since Twig version 2.7, use "Twig\Node\DoNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\DoNode" instead */ class Twig_Node_Do extends DoNode { diff --git a/lib/Twig/Node/Embed.php b/lib/Twig/Node/Embed.php index 0b7f205a6..1458749ba 100644 --- a/lib/Twig/Node/Embed.php +++ b/lib/Twig/Node/Embed.php @@ -4,9 +4,9 @@ use Twig\Node\EmbedNode; class_exists('Twig\Node\EmbedNode'); -@trigger_error(sprintf('Using the "Twig_Node_Embed" class is deprecated since Twig version 2.7, use "Twig\Node\EmbedNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Embed" class is deprecated since Twig version 2.7, use "Twig\Node\EmbedNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\EmbedNode" instead */ class Twig_Node_Embed extends EmbedNode { diff --git a/lib/Twig/Node/Expression.php b/lib/Twig/Node/Expression.php index 2b465cc48..384db4849 100644 --- a/lib/Twig/Node/Expression.php +++ b/lib/Twig/Node/Expression.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\AbstractExpression; class_exists('Twig\Node\Expression\AbstractExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\AbstractExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\AbstractExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\AbstractExpression" instead */ class Twig_Node_Expression extends AbstractExpression { diff --git a/lib/Twig/Node/Expression/Array.php b/lib/Twig/Node/Expression/Array.php index 033aafa90..71c8764c1 100644 --- a/lib/Twig/Node/Expression/Array.php +++ b/lib/Twig/Node/Expression/Array.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\ArrayExpression; class_exists('Twig\Node\Expression\ArrayExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Array" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ArrayExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Array" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ArrayExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\ArrayExpression" instead */ class Twig_Node_Expression_Array extends ArrayExpression { diff --git a/lib/Twig/Node/Expression/AssignName.php b/lib/Twig/Node/Expression/AssignName.php index e359407c5..92aca63dd 100644 --- a/lib/Twig/Node/Expression/AssignName.php +++ b/lib/Twig/Node/Expression/AssignName.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\AssignNameExpression; class_exists('Twig\Node\Expression\AssignNameExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_AssignName" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\AssignNameExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_AssignName" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\AssignNameExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\AssignNameExpression" instead */ class Twig_Node_Expression_AssignName extends AssignNameExpression { diff --git a/lib/Twig/Node/Expression/Binary.php b/lib/Twig/Node/Expression/Binary.php index 3314d6529..f1446b930 100644 --- a/lib/Twig/Node/Expression/Binary.php +++ b/lib/Twig/Node/Expression/Binary.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\AbstractBinary; class_exists('Twig\Node\Expression\Binary\AbstractBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AbstractBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AbstractBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\AbstractBinary" instead */ class Twig_Node_Expression_Binary extends AbstractBinary { diff --git a/lib/Twig/Node/Expression/Binary/Add.php b/lib/Twig/Node/Expression/Binary/Add.php index 3c683a657..8adc26674 100644 --- a/lib/Twig/Node/Expression/Binary/Add.php +++ b/lib/Twig/Node/Expression/Binary/Add.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\AddBinary; class_exists('Twig\Node\Expression\Binary\AddBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Add" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AddBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Add" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AddBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\AddBinary" instead */ class Twig_Node_Expression_Binary_Add extends AddBinary { diff --git a/lib/Twig/Node/Expression/Binary/And.php b/lib/Twig/Node/Expression/Binary/And.php index 4c26aedc4..9471956e1 100644 --- a/lib/Twig/Node/Expression/Binary/And.php +++ b/lib/Twig/Node/Expression/Binary/And.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\AndBinary; class_exists('Twig\Node\Expression\Binary\AndBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_And" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AndBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_And" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\AndBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\AndBinary" instead */ class Twig_Node_Expression_Binary_And extends AndBinary { diff --git a/lib/Twig/Node/Expression/Binary/BitwiseAnd.php b/lib/Twig/Node/Expression/Binary/BitwiseAnd.php index ba93ed778..04e4be7a2 100644 --- a/lib/Twig/Node/Expression/Binary/BitwiseAnd.php +++ b/lib/Twig/Node/Expression/Binary/BitwiseAnd.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\BitwiseAndBinary; class_exists('Twig\Node\Expression\Binary\BitwiseAndBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_BitwiseAnd" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseAndBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_BitwiseAnd" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseAndBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\BitwiseAndBinary" instead */ class Twig_Node_Expression_Binary_BitwiseAnd extends BitwiseAndBinary { diff --git a/lib/Twig/Node/Expression/Binary/BitwiseOr.php b/lib/Twig/Node/Expression/Binary/BitwiseOr.php index a87e4f585..866b00b12 100644 --- a/lib/Twig/Node/Expression/Binary/BitwiseOr.php +++ b/lib/Twig/Node/Expression/Binary/BitwiseOr.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\BitwiseOrBinary; class_exists('Twig\Node\Expression\Binary\BitwiseOrBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_BitwiseOr" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseOrBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_BitwiseOr" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseOrBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\BitwiseOrBinary" instead */ class Twig_Node_Expression_Binary_BitwiseOr extends BitwiseOrBinary { diff --git a/lib/Twig/Node/Expression/Binary/BitwiseXor.php b/lib/Twig/Node/Expression/Binary/BitwiseXor.php index ac35fde85..9e6a88e45 100644 --- a/lib/Twig/Node/Expression/Binary/BitwiseXor.php +++ b/lib/Twig/Node/Expression/Binary/BitwiseXor.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\BitwiseXorBinary; class_exists('Twig\Node\Expression\Binary\BitwiseXorBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_BitwiseXor" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseXorBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_BitwiseXor" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\BitwiseXorBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\BitwiseXorBinary" instead */ class Twig_Node_Expression_Binary_BitwiseXor extends BitwiseXorBinary { diff --git a/lib/Twig/Node/Expression/Binary/Concat.php b/lib/Twig/Node/Expression/Binary/Concat.php index 29c69972b..b7595c24b 100644 --- a/lib/Twig/Node/Expression/Binary/Concat.php +++ b/lib/Twig/Node/Expression/Binary/Concat.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\ConcatBinary; class_exists('Twig\Node\Expression\Binary\ConcatBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Concat" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\ConcatBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Concat" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\ConcatBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\ConcatBinary" instead */ class Twig_Node_Expression_Binary_Concat extends ConcatBinary { diff --git a/lib/Twig/Node/Expression/Binary/Div.php b/lib/Twig/Node/Expression/Binary/Div.php index 1c0e88430..a485e0d9b 100644 --- a/lib/Twig/Node/Expression/Binary/Div.php +++ b/lib/Twig/Node/Expression/Binary/Div.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\DivBinary; class_exists('Twig\Node\Expression\Binary\DivBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Div" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\DivBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Div" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\DivBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\DivBinary" instead */ class Twig_Node_Expression_Binary_Div extends DivBinary { diff --git a/lib/Twig/Node/Expression/Binary/EndsWith.php b/lib/Twig/Node/Expression/Binary/EndsWith.php index 0c590661c..c0c233225 100644 --- a/lib/Twig/Node/Expression/Binary/EndsWith.php +++ b/lib/Twig/Node/Expression/Binary/EndsWith.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\EndsWithBinary; class_exists('Twig\Node\Expression\Binary\EndsWithBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_EndsWith" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\EndsWithBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_EndsWith" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\EndsWithBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\EndsWithBinary" instead */ class Twig_Node_Expression_Binary_EndsWith extends EndsWithBinary { diff --git a/lib/Twig/Node/Expression/Binary/Equal.php b/lib/Twig/Node/Expression/Binary/Equal.php index 2f27be4b2..7a26c0976 100644 --- a/lib/Twig/Node/Expression/Binary/Equal.php +++ b/lib/Twig/Node/Expression/Binary/Equal.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\EqualBinary; class_exists('Twig\Node\Expression\Binary\EqualBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Equal" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\EqualBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Equal" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\EqualBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\EqualBinary" instead */ class Twig_Node_Expression_Binary_Equal extends EqualBinary { diff --git a/lib/Twig/Node/Expression/Binary/FloorDiv.php b/lib/Twig/Node/Expression/Binary/FloorDiv.php index 93590b6b1..c4e1ee9c3 100644 --- a/lib/Twig/Node/Expression/Binary/FloorDiv.php +++ b/lib/Twig/Node/Expression/Binary/FloorDiv.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\FloorDivBinary; class_exists('Twig\Node\Expression\Binary\FloorDivBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_FloorDiv" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\FloorDivBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_FloorDiv" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\FloorDivBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\FloorDivBinary" instead */ class Twig_Node_Expression_Binary_FloorDiv extends FloorDivBinary { diff --git a/lib/Twig/Node/Expression/Binary/Greater.php b/lib/Twig/Node/Expression/Binary/Greater.php index 7083b1c5e..90af5fb01 100644 --- a/lib/Twig/Node/Expression/Binary/Greater.php +++ b/lib/Twig/Node/Expression/Binary/Greater.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\GreaterBinary; class_exists('Twig\Node\Expression\Binary\GreaterBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Greater" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\GreaterBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Greater" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\GreaterBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\GreaterBinary" instead */ class Twig_Node_Expression_Binary_Greater extends GreaterBinary { diff --git a/lib/Twig/Node/Expression/Binary/GreaterEqual.php b/lib/Twig/Node/Expression/Binary/GreaterEqual.php index 6ef32b854..5eadde8d9 100644 --- a/lib/Twig/Node/Expression/Binary/GreaterEqual.php +++ b/lib/Twig/Node/Expression/Binary/GreaterEqual.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\GreaterEqualBinary; class_exists('Twig\Node\Expression\Binary\GreaterEqualBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_GreaterEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\GreaterEqualBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_GreaterEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\GreaterEqualBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\GreaterEqualBinary" instead */ class Twig_Node_Expression_Binary_GreaterEqual extends GreaterEqualBinary { diff --git a/lib/Twig/Node/Expression/Binary/In.php b/lib/Twig/Node/Expression/Binary/In.php index 57aa1657f..bfec34779 100644 --- a/lib/Twig/Node/Expression/Binary/In.php +++ b/lib/Twig/Node/Expression/Binary/In.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\InBinary; class_exists('Twig\Node\Expression\Binary\InBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_In" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\InBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_In" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\InBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\InBinary" instead */ class Twig_Node_Expression_Binary_In extends InBinary { diff --git a/lib/Twig/Node/Expression/Binary/Less.php b/lib/Twig/Node/Expression/Binary/Less.php index 586813bd3..564997879 100644 --- a/lib/Twig/Node/Expression/Binary/Less.php +++ b/lib/Twig/Node/Expression/Binary/Less.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\LessBinary; class_exists('Twig\Node\Expression\Binary\LessBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Less" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\LessBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Less" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\LessBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\LessBinary" instead */ class Twig_Node_Expression_Binary_Less extends LessBinary { diff --git a/lib/Twig/Node/Expression/Binary/LessEqual.php b/lib/Twig/Node/Expression/Binary/LessEqual.php index d33587980..c05fe647b 100644 --- a/lib/Twig/Node/Expression/Binary/LessEqual.php +++ b/lib/Twig/Node/Expression/Binary/LessEqual.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\LessEqualBinary; class_exists('Twig\Node\Expression\Binary\LessEqualBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_LessEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\LessEqualBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_LessEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\LessEqualBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\LessEqualBinary" instead */ class Twig_Node_Expression_Binary_LessEqual extends LessEqualBinary { diff --git a/lib/Twig/Node/Expression/Binary/Matches.php b/lib/Twig/Node/Expression/Binary/Matches.php index 4b3df0295..d646190c1 100644 --- a/lib/Twig/Node/Expression/Binary/Matches.php +++ b/lib/Twig/Node/Expression/Binary/Matches.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\MatchesBinary; class_exists('Twig\Node\Expression\Binary\MatchesBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Matches" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\MatchesBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Matches" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\MatchesBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\MatchesBinary" instead */ class Twig_Node_Expression_Binary_Matches extends MatchesBinary { diff --git a/lib/Twig/Node/Expression/Binary/Mod.php b/lib/Twig/Node/Expression/Binary/Mod.php index 9bea824b8..f806d38d3 100644 --- a/lib/Twig/Node/Expression/Binary/Mod.php +++ b/lib/Twig/Node/Expression/Binary/Mod.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\ModBinary; class_exists('Twig\Node\Expression\Binary\ModBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Mod" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\ModBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Mod" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\ModBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\ModBinary" instead */ class Twig_Node_Expression_Binary_Mod extends ModBinary { diff --git a/lib/Twig/Node/Expression/Binary/Mul.php b/lib/Twig/Node/Expression/Binary/Mul.php index 0a831ac51..4a4528285 100644 --- a/lib/Twig/Node/Expression/Binary/Mul.php +++ b/lib/Twig/Node/Expression/Binary/Mul.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\MulBinary; class_exists('Twig\Node\Expression\Binary\MulBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Mul" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\MulBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Mul" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\MulBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\MulBinary" instead */ class Twig_Node_Expression_Binary_Mul extends MulBinary { diff --git a/lib/Twig/Node/Expression/Binary/NotEqual.php b/lib/Twig/Node/Expression/Binary/NotEqual.php index fcb1d3d20..d59708f03 100644 --- a/lib/Twig/Node/Expression/Binary/NotEqual.php +++ b/lib/Twig/Node/Expression/Binary/NotEqual.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\NotEqualBinary; class_exists('Twig\Node\Expression\Binary\NotEqualBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_NotEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\NotEqualBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_NotEqual" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\NotEqualBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\NotEqualBinary" instead */ class Twig_Node_Expression_Binary_NotEqual extends NotEqualBinary { diff --git a/lib/Twig/Node/Expression/Binary/NotIn.php b/lib/Twig/Node/Expression/Binary/NotIn.php index 49a88a5b2..cb830e9ae 100644 --- a/lib/Twig/Node/Expression/Binary/NotIn.php +++ b/lib/Twig/Node/Expression/Binary/NotIn.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\NotInBinary; class_exists('Twig\Node\Expression\Binary\NotInBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_NotIn" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\NotInBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_NotIn" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\NotInBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\NotInBinary" instead */ class Twig_Node_Expression_Binary_NotIn extends NotInBinary { diff --git a/lib/Twig/Node/Expression/Binary/Or.php b/lib/Twig/Node/Expression/Binary/Or.php index a5a280584..edd2058c5 100644 --- a/lib/Twig/Node/Expression/Binary/Or.php +++ b/lib/Twig/Node/Expression/Binary/Or.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\OrBinary; class_exists('Twig\Node\Expression\Binary\OrBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Or" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\OrBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Or" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\OrBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\OrBinary" instead */ class Twig_Node_Expression_Binary_Or extends OrBinary { diff --git a/lib/Twig/Node/Expression/Binary/Power.php b/lib/Twig/Node/Expression/Binary/Power.php index 5785637a0..71986ca63 100644 --- a/lib/Twig/Node/Expression/Binary/Power.php +++ b/lib/Twig/Node/Expression/Binary/Power.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\PowerBinary; class_exists('Twig\Node\Expression\Binary\PowerBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Power" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\PowerBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Power" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\PowerBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\PowerBinary" instead */ class Twig_Node_Expression_Binary_Power extends PowerBinary { diff --git a/lib/Twig/Node/Expression/Binary/Range.php b/lib/Twig/Node/Expression/Binary/Range.php index a416a514f..4197cdf94 100644 --- a/lib/Twig/Node/Expression/Binary/Range.php +++ b/lib/Twig/Node/Expression/Binary/Range.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\RangeBinary; class_exists('Twig\Node\Expression\Binary\RangeBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Range" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\RangeBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Range" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\RangeBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\RangeBinary" instead */ class Twig_Node_Expression_Binary_Range extends RangeBinary { diff --git a/lib/Twig/Node/Expression/Binary/StartsWith.php b/lib/Twig/Node/Expression/Binary/StartsWith.php index 366c65a92..8bf8b3742 100644 --- a/lib/Twig/Node/Expression/Binary/StartsWith.php +++ b/lib/Twig/Node/Expression/Binary/StartsWith.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\StartsWithBinary; class_exists('Twig\Node\Expression\Binary\StartsWithBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_StartsWith" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\StartsWithBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_StartsWith" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\StartsWithBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\StartsWithBinary" instead */ class Twig_Node_Expression_Binary_StartsWith extends StartsWithBinary { diff --git a/lib/Twig/Node/Expression/Binary/Sub.php b/lib/Twig/Node/Expression/Binary/Sub.php index 5bb252ae9..a1832765d 100644 --- a/lib/Twig/Node/Expression/Binary/Sub.php +++ b/lib/Twig/Node/Expression/Binary/Sub.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Binary\SubBinary; class_exists('Twig\Node\Expression\Binary\SubBinary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Binary_Sub" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\SubBinary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Binary_Sub" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\SubBinary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Binary\SubBinary" instead */ class Twig_Node_Expression_Binary_Sub extends SubBinary { diff --git a/lib/Twig/Node/Expression/BlockReference.php b/lib/Twig/Node/Expression/BlockReference.php index 8cd2cec77..fc8441f27 100644 --- a/lib/Twig/Node/Expression/BlockReference.php +++ b/lib/Twig/Node/Expression/BlockReference.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\BlockReferenceExpression; class_exists('Twig\Node\Expression\BlockReferenceExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_BlockReference" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\BlockReferenceExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_BlockReference" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\BlockReferenceExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\BlockReferenceExpression" instead */ class Twig_Node_Expression_BlockReference extends BlockReferenceExpression { diff --git a/lib/Twig/Node/Expression/Call.php b/lib/Twig/Node/Expression/Call.php index 14fa474a4..ddb5741c5 100644 --- a/lib/Twig/Node/Expression/Call.php +++ b/lib/Twig/Node/Expression/Call.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\CallExpression; class_exists('Twig\Node\Expression\CallExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Call" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\CallExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Call" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\CallExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\CallExpression" instead */ class Twig_Node_Expression_Call extends CallExpression { diff --git a/lib/Twig/Node/Expression/Conditional.php b/lib/Twig/Node/Expression/Conditional.php index 896d54357..a50ed3a10 100644 --- a/lib/Twig/Node/Expression/Conditional.php +++ b/lib/Twig/Node/Expression/Conditional.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\ConditionalExpression; class_exists('Twig\Node\Expression\ConditionalExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Conditional" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ConditionalExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Conditional" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ConditionalExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\ConditionalExpression" instead */ class Twig_Node_Expression_Conditional extends ConditionalExpression { diff --git a/lib/Twig/Node/Expression/Constant.php b/lib/Twig/Node/Expression/Constant.php index d9f7217c6..9141e2589 100644 --- a/lib/Twig/Node/Expression/Constant.php +++ b/lib/Twig/Node/Expression/Constant.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\ConstantExpression; class_exists('Twig\Node\Expression\ConstantExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Constant" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ConstantExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Constant" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ConstantExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\ConstantExpression" instead */ class Twig_Node_Expression_Constant extends ConstantExpression { diff --git a/lib/Twig/Node/Expression/Filter.php b/lib/Twig/Node/Expression/Filter.php index e248f8873..f8be806ec 100644 --- a/lib/Twig/Node/Expression/Filter.php +++ b/lib/Twig/Node/Expression/Filter.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\FilterExpression; class_exists('Twig\Node\Expression\FilterExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Filter" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\FilterExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Filter" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\FilterExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\FilterExpression" instead */ class Twig_Node_Expression_Filter extends FilterExpression { diff --git a/lib/Twig/Node/Expression/Filter/Default.php b/lib/Twig/Node/Expression/Filter/Default.php index 3e200234e..d00151e2a 100644 --- a/lib/Twig/Node/Expression/Filter/Default.php +++ b/lib/Twig/Node/Expression/Filter/Default.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Filter\DefaultFilter; class_exists('Twig\Node\Expression\Filter\DefaultFilter'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Filter_Default" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Filter\DefaultFilter" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Filter_Default" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Filter\DefaultFilter" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Filter\DefaultFilter" instead */ class Twig_Node_Expression_Filter_Default extends DefaultFilter { diff --git a/lib/Twig/Node/Expression/Function.php b/lib/Twig/Node/Expression/Function.php index 46b1062c1..42886119a 100644 --- a/lib/Twig/Node/Expression/Function.php +++ b/lib/Twig/Node/Expression/Function.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\FunctionExpression; class_exists('Twig\Node\Expression\FunctionExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Function" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\FunctionExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Function" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\FunctionExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\FunctionExpression" instead */ class Twig_Node_Expression_Function extends FunctionExpression { diff --git a/lib/Twig/Node/Expression/GetAttr.php b/lib/Twig/Node/Expression/GetAttr.php index b64da4828..1a69bede0 100644 --- a/lib/Twig/Node/Expression/GetAttr.php +++ b/lib/Twig/Node/Expression/GetAttr.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\GetAttrExpression; class_exists('Twig\Node\Expression\GetAttrExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_GetAttr" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\GetAttrExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_GetAttr" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\GetAttrExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\GetAttrExpression" instead */ class Twig_Node_Expression_GetAttr extends GetAttrExpression { diff --git a/lib/Twig/Node/Expression/MethodCall.php b/lib/Twig/Node/Expression/MethodCall.php index cc85b20d2..6e7718cef 100644 --- a/lib/Twig/Node/Expression/MethodCall.php +++ b/lib/Twig/Node/Expression/MethodCall.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\MethodCallExpression; class_exists('Twig\Node\Expression\MethodCallExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_MethodCall" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\MethodCallExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_MethodCall" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\MethodCallExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\MethodCallExpression" instead */ class Twig_Node_Expression_MethodCall extends MethodCallExpression { diff --git a/lib/Twig/Node/Expression/Name.php b/lib/Twig/Node/Expression/Name.php index a0b5bdf8c..0cdc45bf5 100644 --- a/lib/Twig/Node/Expression/Name.php +++ b/lib/Twig/Node/Expression/Name.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\NameExpression; class_exists('Twig\Node\Expression\NameExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Name" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\NameExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Name" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\NameExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\NameExpression" instead */ class Twig_Node_Expression_Name extends NameExpression { diff --git a/lib/Twig/Node/Expression/NullCoalesce.php b/lib/Twig/Node/Expression/NullCoalesce.php index 4ac7ebe1a..2905cdb4f 100644 --- a/lib/Twig/Node/Expression/NullCoalesce.php +++ b/lib/Twig/Node/Expression/NullCoalesce.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\NullCoalesceExpression; class_exists('Twig\Node\Expression\NullCoalesceExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_NullCoalesce" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\NullCoalesceExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_NullCoalesce" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\NullCoalesceExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\NullCoalesceExpression" instead */ class Twig_Node_Expression_NullCoalesce extends NullCoalesceExpression { diff --git a/lib/Twig/Node/Expression/Parent.php b/lib/Twig/Node/Expression/Parent.php index 3b27b65e7..8e9c86039 100644 --- a/lib/Twig/Node/Expression/Parent.php +++ b/lib/Twig/Node/Expression/Parent.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\ParentExpression; class_exists('Twig\Node\Expression\ParentExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Parent" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ParentExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Parent" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\ParentExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\ParentExpression" instead */ class Twig_Node_Expression_Parent extends ParentExpression { diff --git a/lib/Twig/Node/Expression/TempName.php b/lib/Twig/Node/Expression/TempName.php index 41e9d697f..93b422689 100644 --- a/lib/Twig/Node/Expression/TempName.php +++ b/lib/Twig/Node/Expression/TempName.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\TempNameExpression; class_exists('Twig\Node\Expression\TempNameExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_TempName" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\TempNameExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_TempName" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\TempNameExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\TempNameExpression" instead */ class Twig_Node_Expression_TempName extends TempNameExpression { diff --git a/lib/Twig/Node/Expression/Test.php b/lib/Twig/Node/Expression/Test.php index 8e7b253e1..d91340fee 100644 --- a/lib/Twig/Node/Expression/Test.php +++ b/lib/Twig/Node/Expression/Test.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\TestExpression; class_exists('Twig\Node\Expression\TestExpression'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\TestExpression" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\TestExpression" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\TestExpression" instead */ class Twig_Node_Expression_Test extends TestExpression { diff --git a/lib/Twig/Node/Expression/Test/Constant.php b/lib/Twig/Node/Expression/Test/Constant.php index dd9b6a987..d02d90160 100644 --- a/lib/Twig/Node/Expression/Test/Constant.php +++ b/lib/Twig/Node/Expression/Test/Constant.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\ConstantTest; class_exists('Twig\Node\Expression\Test\ConstantTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Constant" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\ConstantTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Constant" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\ConstantTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\ConstantTest" instead */ class Twig_Node_Expression_Test_Constant extends ConstantTest { diff --git a/lib/Twig/Node/Expression/Test/Defined.php b/lib/Twig/Node/Expression/Test/Defined.php index 892607d6c..739621325 100644 --- a/lib/Twig/Node/Expression/Test/Defined.php +++ b/lib/Twig/Node/Expression/Test/Defined.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\DefinedTest; class_exists('Twig\Node\Expression\Test\DefinedTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Defined" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\DefinedTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Defined" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\DefinedTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\DefinedTest" instead */ class Twig_Node_Expression_Test_Defined extends DefinedTest { diff --git a/lib/Twig/Node/Expression/Test/Divisibleby.php b/lib/Twig/Node/Expression/Test/Divisibleby.php index b624aa6f5..ba6dc32cd 100644 --- a/lib/Twig/Node/Expression/Test/Divisibleby.php +++ b/lib/Twig/Node/Expression/Test/Divisibleby.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\DivisiblebyTest; class_exists('Twig\Node\Expression\Test\DivisiblebyTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Divisibleby" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\DivisiblebyTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Divisibleby" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\DivisiblebyTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\DivisiblebyTest" instead */ class Twig_Node_Expression_Test_Divisibleby extends DivisiblebyTest { diff --git a/lib/Twig/Node/Expression/Test/Even.php b/lib/Twig/Node/Expression/Test/Even.php index 355ee0409..267563328 100644 --- a/lib/Twig/Node/Expression/Test/Even.php +++ b/lib/Twig/Node/Expression/Test/Even.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\EvenTest; class_exists('Twig\Node\Expression\Test\EvenTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Even" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\EvenTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Even" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\EvenTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\EvenTest" instead */ class Twig_Node_Expression_Test_Even extends EvenTest { diff --git a/lib/Twig/Node/Expression/Test/Null.php b/lib/Twig/Node/Expression/Test/Null.php index 4a5c4155e..b948cd8c0 100644 --- a/lib/Twig/Node/Expression/Test/Null.php +++ b/lib/Twig/Node/Expression/Test/Null.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\NullTest; class_exists('Twig\Node\Expression\Test\NullTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Null" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\NullTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Null" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\NullTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\NullTest" instead */ class Twig_Node_Expression_Test_Null extends NullTest { diff --git a/lib/Twig/Node/Expression/Test/Odd.php b/lib/Twig/Node/Expression/Test/Odd.php index 5791d6759..bd6f69d5f 100644 --- a/lib/Twig/Node/Expression/Test/Odd.php +++ b/lib/Twig/Node/Expression/Test/Odd.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\OddTest; class_exists('Twig\Node\Expression\Test\OddTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Odd" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\OddTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Odd" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\OddTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\OddTest" instead */ class Twig_Node_Expression_Test_Odd extends OddTest { diff --git a/lib/Twig/Node/Expression/Test/Sameas.php b/lib/Twig/Node/Expression/Test/Sameas.php index 67e0f0e70..5e73d10f9 100644 --- a/lib/Twig/Node/Expression/Test/Sameas.php +++ b/lib/Twig/Node/Expression/Test/Sameas.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Test\SameasTest; class_exists('Twig\Node\Expression\Test\SameasTest'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Test_Sameas" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\SameasTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Test_Sameas" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Test\SameasTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Test\SameasTest" instead */ class Twig_Node_Expression_Test_Sameas extends SameasTest { diff --git a/lib/Twig/Node/Expression/Unary.php b/lib/Twig/Node/Expression/Unary.php index 1319ea735..56f01cf0c 100644 --- a/lib/Twig/Node/Expression/Unary.php +++ b/lib/Twig/Node/Expression/Unary.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Unary\AbstractUnary; class_exists('Twig\Node\Expression\Unary\AbstractUnary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Unary" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\AbstractUnary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Unary" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\AbstractUnary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Unary\AbstractUnary" instead */ class Twig_Node_Expression_Unary extends AbstractUnary { diff --git a/lib/Twig/Node/Expression/Unary/Neg.php b/lib/Twig/Node/Expression/Unary/Neg.php index 11920e60c..34d14a675 100644 --- a/lib/Twig/Node/Expression/Unary/Neg.php +++ b/lib/Twig/Node/Expression/Unary/Neg.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Unary\NegUnary; class_exists('Twig\Node\Expression\Unary\NegUnary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Unary_Neg" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\NegUnary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Unary_Neg" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\NegUnary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Unary\NegUnary" instead */ class Twig_Node_Expression_Unary_Neg extends NegUnary { diff --git a/lib/Twig/Node/Expression/Unary/Not.php b/lib/Twig/Node/Expression/Unary/Not.php index 10fda176d..1cdb6867e 100644 --- a/lib/Twig/Node/Expression/Unary/Not.php +++ b/lib/Twig/Node/Expression/Unary/Not.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Unary\NotUnary; class_exists('Twig\Node\Expression\Unary\NotUnary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Unary_Not" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\NotUnary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Unary_Not" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\NotUnary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Unary\NotUnary" instead */ class Twig_Node_Expression_Unary_Not extends NotUnary { diff --git a/lib/Twig/Node/Expression/Unary/Pos.php b/lib/Twig/Node/Expression/Unary/Pos.php index 923780925..bbd33e0d0 100644 --- a/lib/Twig/Node/Expression/Unary/Pos.php +++ b/lib/Twig/Node/Expression/Unary/Pos.php @@ -4,9 +4,9 @@ use Twig\Node\Expression\Unary\PosUnary; class_exists('Twig\Node\Expression\Unary\PosUnary'); -@trigger_error(sprintf('Using the "Twig_Node_Expression_Unary_Pos" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\PosUnary" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Expression_Unary_Pos" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Unary\PosUnary" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\Expression\Unary\PosUnary" instead */ class Twig_Node_Expression_Unary_Pos extends PosUnary { diff --git a/lib/Twig/Node/Flush.php b/lib/Twig/Node/Flush.php index 76031e541..57ac85bb0 100644 --- a/lib/Twig/Node/Flush.php +++ b/lib/Twig/Node/Flush.php @@ -4,9 +4,9 @@ use Twig\Node\FlushNode; class_exists('Twig\Node\FlushNode'); -@trigger_error(sprintf('Using the "Twig_Node_Flush" class is deprecated since Twig version 2.7, use "Twig\Node\FlushNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Flush" class is deprecated since Twig version 2.7, use "Twig\Node\FlushNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\FlushNode" instead */ class Twig_Node_Flush extends FlushNode { diff --git a/lib/Twig/Node/For.php b/lib/Twig/Node/For.php index 20b6d313c..21add730c 100644 --- a/lib/Twig/Node/For.php +++ b/lib/Twig/Node/For.php @@ -4,9 +4,9 @@ use Twig\Node\ForNode; class_exists('Twig\Node\ForNode'); -@trigger_error(sprintf('Using the "Twig_Node_For" class is deprecated since Twig version 2.7, use "Twig\Node\ForNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_For" class is deprecated since Twig version 2.7, use "Twig\Node\ForNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\ForNode" instead */ class Twig_Node_For extends ForNode { diff --git a/lib/Twig/Node/ForLoop.php b/lib/Twig/Node/ForLoop.php index 9951144cf..e7a01d005 100644 --- a/lib/Twig/Node/ForLoop.php +++ b/lib/Twig/Node/ForLoop.php @@ -4,9 +4,9 @@ use Twig\Node\ForLoopNode; class_exists('Twig\Node\ForLoopNode'); -@trigger_error(sprintf('Using the "Twig_Node_ForLoop" class is deprecated since Twig version 2.7, use "Twig\Node\ForLoopNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_ForLoop" class is deprecated since Twig version 2.7, use "Twig\Node\ForLoopNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\ForLoopNode" instead */ class Twig_Node_ForLoop extends ForLoopNode { diff --git a/lib/Twig/Node/If.php b/lib/Twig/Node/If.php index 879b5905a..9df299640 100644 --- a/lib/Twig/Node/If.php +++ b/lib/Twig/Node/If.php @@ -4,9 +4,9 @@ use Twig\Node\IfNode; class_exists('Twig\Node\IfNode'); -@trigger_error(sprintf('Using the "Twig_Node_If" class is deprecated since Twig version 2.7, use "Twig\Node\IfNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_If" class is deprecated since Twig version 2.7, use "Twig\Node\IfNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\IfNode" instead */ class Twig_Node_If extends IfNode { diff --git a/lib/Twig/Node/Import.php b/lib/Twig/Node/Import.php index 9640e352f..98cf16246 100644 --- a/lib/Twig/Node/Import.php +++ b/lib/Twig/Node/Import.php @@ -4,9 +4,9 @@ use Twig\Node\ImportNode; class_exists('Twig\Node\ImportNode'); -@trigger_error(sprintf('Using the "Twig_Node_Import" class is deprecated since Twig version 2.7, use "Twig\Node\ImportNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Import" class is deprecated since Twig version 2.7, use "Twig\Node\ImportNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\ImportNode" instead */ class Twig_Node_Import extends ImportNode { diff --git a/lib/Twig/Node/Include.php b/lib/Twig/Node/Include.php index 38b6742af..87f7307cc 100644 --- a/lib/Twig/Node/Include.php +++ b/lib/Twig/Node/Include.php @@ -4,9 +4,9 @@ use Twig\Node\IncludeNode; class_exists('Twig\Node\IncludeNode'); -@trigger_error(sprintf('Using the "Twig_Node_Include" class is deprecated since Twig version 2.7, use "Twig\Node\IncludeNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Include" class is deprecated since Twig version 2.7, use "Twig\Node\IncludeNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\IncludeNode" instead */ class Twig_Node_Include extends IncludeNode { diff --git a/lib/Twig/Node/Macro.php b/lib/Twig/Node/Macro.php index 1b0a15592..ccff374e2 100644 --- a/lib/Twig/Node/Macro.php +++ b/lib/Twig/Node/Macro.php @@ -4,9 +4,9 @@ use Twig\Node\MacroNode; class_exists('Twig\Node\MacroNode'); -@trigger_error(sprintf('Using the "Twig_Node_Macro" class is deprecated since Twig version 2.7, use "Twig\Node\MacroNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Macro" class is deprecated since Twig version 2.7, use "Twig\Node\MacroNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\MacroNode" instead */ class Twig_Node_Macro extends MacroNode { diff --git a/lib/Twig/Node/Module.php b/lib/Twig/Node/Module.php index 528b52a67..b488ddebc 100644 --- a/lib/Twig/Node/Module.php +++ b/lib/Twig/Node/Module.php @@ -4,9 +4,9 @@ use Twig\Node\ModuleNode; class_exists('Twig\Node\ModuleNode'); -@trigger_error(sprintf('Using the "Twig_Node_Module" class is deprecated since Twig version 2.7, use "Twig\Node\ModuleNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Module" class is deprecated since Twig version 2.7, use "Twig\Node\ModuleNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\ModuleNode" instead */ class Twig_Node_Module extends ModuleNode { diff --git a/lib/Twig/Node/Print.php b/lib/Twig/Node/Print.php index ffb5f113f..c2487ef15 100644 --- a/lib/Twig/Node/Print.php +++ b/lib/Twig/Node/Print.php @@ -4,9 +4,9 @@ use Twig\Node\PrintNode; class_exists('Twig\Node\PrintNode'); -@trigger_error(sprintf('Using the "Twig_Node_Print" class is deprecated since Twig version 2.7, use "Twig\Node\PrintNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Print" class is deprecated since Twig version 2.7, use "Twig\Node\PrintNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\PrintNode" instead */ class Twig_Node_Print extends PrintNode { diff --git a/lib/Twig/Node/Sandbox.php b/lib/Twig/Node/Sandbox.php index 4f3870563..6acbd7c6b 100644 --- a/lib/Twig/Node/Sandbox.php +++ b/lib/Twig/Node/Sandbox.php @@ -4,9 +4,9 @@ use Twig\Node\SandboxNode; class_exists('Twig\Node\SandboxNode'); -@trigger_error(sprintf('Using the "Twig_Node_Sandbox" class is deprecated since Twig version 2.7, use "Twig\Node\SandboxNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Sandbox" class is deprecated since Twig version 2.7, use "Twig\Node\SandboxNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\SandboxNode" instead */ class Twig_Node_Sandbox extends SandboxNode { diff --git a/lib/Twig/Node/SandboxedPrint.php b/lib/Twig/Node/SandboxedPrint.php index a17e305da..050138930 100644 --- a/lib/Twig/Node/SandboxedPrint.php +++ b/lib/Twig/Node/SandboxedPrint.php @@ -4,9 +4,9 @@ use Twig\Node\SandboxedPrintNode; class_exists('Twig\Node\SandboxedPrintNode'); -@trigger_error(sprintf('Using the "Twig_Node_SandboxedPrint" class is deprecated since Twig version 2.7, use "Twig\Node\SandboxedPrintNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_SandboxedPrint" class is deprecated since Twig version 2.7, use "Twig\Node\SandboxedPrintNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\SandboxedPrintNode" instead */ class Twig_Node_SandboxedPrint extends SandboxedPrintNode { diff --git a/lib/Twig/Node/Set.php b/lib/Twig/Node/Set.php index db48657dd..e0ec5feba 100644 --- a/lib/Twig/Node/Set.php +++ b/lib/Twig/Node/Set.php @@ -4,9 +4,9 @@ use Twig\Node\SetNode; class_exists('Twig\Node\SetNode'); -@trigger_error(sprintf('Using the "Twig_Node_Set" class is deprecated since Twig version 2.7, use "Twig\Node\SetNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Set" class is deprecated since Twig version 2.7, use "Twig\Node\SetNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\SetNode" instead */ class Twig_Node_Set extends SetNode { diff --git a/lib/Twig/Node/Spaceless.php b/lib/Twig/Node/Spaceless.php index 9f0fd0a66..b0fb4b28d 100644 --- a/lib/Twig/Node/Spaceless.php +++ b/lib/Twig/Node/Spaceless.php @@ -4,9 +4,9 @@ use Twig\Node\SpacelessNode; class_exists('Twig\Node\SpacelessNode'); -@trigger_error(sprintf('Using the "Twig_Node_Spaceless" class is deprecated since Twig version 2.7, use "Twig\Node\SpacelessNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Spaceless" class is deprecated since Twig version 2.7, use "Twig\Node\SpacelessNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\SpacelessNode" instead */ class Twig_Node_Spaceless extends SpacelessNode { diff --git a/lib/Twig/Node/Text.php b/lib/Twig/Node/Text.php index f85ab37fd..d9237f991 100644 --- a/lib/Twig/Node/Text.php +++ b/lib/Twig/Node/Text.php @@ -4,9 +4,9 @@ use Twig\Node\TextNode; class_exists('Twig\Node\TextNode'); -@trigger_error(sprintf('Using the "Twig_Node_Text" class is deprecated since Twig version 2.7, use "Twig\Node\TextNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_Text" class is deprecated since Twig version 2.7, use "Twig\Node\TextNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\TextNode" instead */ class Twig_Node_Text extends TextNode { diff --git a/lib/Twig/Node/With.php b/lib/Twig/Node/With.php index 3c6321d14..599cb61f6 100644 --- a/lib/Twig/Node/With.php +++ b/lib/Twig/Node/With.php @@ -4,9 +4,9 @@ use Twig\Node\WithNode; class_exists('Twig\Node\WithNode'); -@trigger_error(sprintf('Using the "Twig_Node_With" class is deprecated since Twig version 2.7, use "Twig\Node\WithNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Node_With" class is deprecated since Twig version 2.7, use "Twig\Node\WithNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\WithNode" instead */ class Twig_Node_With extends WithNode { diff --git a/lib/Twig/NodeCaptureInterface.php b/lib/Twig/NodeCaptureInterface.php index d3cfb1e93..2335eb88e 100644 --- a/lib/Twig/NodeCaptureInterface.php +++ b/lib/Twig/NodeCaptureInterface.php @@ -4,9 +4,9 @@ use Twig\Node\NodeCaptureInterface; class_exists('Twig\Node\NodeCaptureInterface'); -@trigger_error(sprintf('Using the "Twig_NodeCaptureInterface" class is deprecated since Twig version 2.7, use "Twig\Node\NodeCaptureInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeCaptureInterface" class is deprecated since Twig version 2.7, use "Twig\Node\NodeCaptureInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\NodeCaptureInterface" instead */ class Twig_NodeCaptureInterface extends NodeCaptureInterface { diff --git a/lib/Twig/NodeOutputInterface.php b/lib/Twig/NodeOutputInterface.php index 4268e2fc5..a9da48ed2 100644 --- a/lib/Twig/NodeOutputInterface.php +++ b/lib/Twig/NodeOutputInterface.php @@ -4,9 +4,9 @@ use Twig\Node\NodeOutputInterface; class_exists('Twig\Node\NodeOutputInterface'); -@trigger_error(sprintf('Using the "Twig_NodeOutputInterface" class is deprecated since Twig version 2.7, use "Twig\Node\NodeOutputInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeOutputInterface" class is deprecated since Twig version 2.7, use "Twig\Node\NodeOutputInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Node\NodeOutputInterface" instead */ class Twig_NodeOutputInterface extends NodeOutputInterface { diff --git a/lib/Twig/NodeTraverser.php b/lib/Twig/NodeTraverser.php index 66d8fe89d..bd76ca87a 100644 --- a/lib/Twig/NodeTraverser.php +++ b/lib/Twig/NodeTraverser.php @@ -4,9 +4,9 @@ use Twig\NodeTraverser; class_exists('Twig\NodeTraverser'); -@trigger_error(sprintf('Using the "Twig_NodeTraverser" class is deprecated since Twig version 2.7, use "Twig\NodeTraverser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeTraverser" class is deprecated since Twig version 2.7, use "Twig\NodeTraverser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeTraverser" instead */ class Twig_NodeTraverser extends NodeTraverser { diff --git a/lib/Twig/NodeVisitor/Escaper.php b/lib/Twig/NodeVisitor/Escaper.php index d1fd6c291..0eb91c415 100644 --- a/lib/Twig/NodeVisitor/Escaper.php +++ b/lib/Twig/NodeVisitor/Escaper.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\EscaperNodeVisitor; class_exists('Twig\NodeVisitor\EscaperNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_NodeVisitor_Escaper" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\EscaperNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeVisitor_Escaper" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\EscaperNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\EscaperNodeVisitor" instead */ class Twig_NodeVisitor_Escaper extends EscaperNodeVisitor { diff --git a/lib/Twig/NodeVisitor/Optimizer.php b/lib/Twig/NodeVisitor/Optimizer.php index 6c7b202ea..173e2a584 100644 --- a/lib/Twig/NodeVisitor/Optimizer.php +++ b/lib/Twig/NodeVisitor/Optimizer.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\OptimizerNodeVisitor; class_exists('Twig\NodeVisitor\OptimizerNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_NodeVisitor_Optimizer" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\OptimizerNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeVisitor_Optimizer" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\OptimizerNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\OptimizerNodeVisitor" instead */ class Twig_NodeVisitor_Optimizer extends OptimizerNodeVisitor { diff --git a/lib/Twig/NodeVisitor/SafeAnalysis.php b/lib/Twig/NodeVisitor/SafeAnalysis.php index 58cbd897c..28750c93c 100644 --- a/lib/Twig/NodeVisitor/SafeAnalysis.php +++ b/lib/Twig/NodeVisitor/SafeAnalysis.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\SafeAnalysisNodeVisitor; class_exists('Twig\NodeVisitor\SafeAnalysisNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_NodeVisitor_SafeAnalysis" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\SafeAnalysisNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeVisitor_SafeAnalysis" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\SafeAnalysisNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\SafeAnalysisNodeVisitor" instead */ class Twig_NodeVisitor_SafeAnalysis extends SafeAnalysisNodeVisitor { diff --git a/lib/Twig/NodeVisitor/Sandbox.php b/lib/Twig/NodeVisitor/Sandbox.php index 38a0d9aa9..c259a5688 100644 --- a/lib/Twig/NodeVisitor/Sandbox.php +++ b/lib/Twig/NodeVisitor/Sandbox.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\SandboxNodeVisitor; class_exists('Twig\NodeVisitor\SandboxNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_NodeVisitor_Sandbox" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\SandboxNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeVisitor_Sandbox" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\SandboxNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\SandboxNodeVisitor" instead */ class Twig_NodeVisitor_Sandbox extends SandboxNodeVisitor { diff --git a/lib/Twig/NodeVisitorInterface.php b/lib/Twig/NodeVisitorInterface.php index 36f837f45..d0127b599 100644 --- a/lib/Twig/NodeVisitorInterface.php +++ b/lib/Twig/NodeVisitorInterface.php @@ -4,9 +4,9 @@ use Twig\NodeVisitor\NodeVisitorInterface; class_exists('Twig\NodeVisitor\NodeVisitorInterface'); -@trigger_error(sprintf('Using the "Twig_NodeVisitorInterface" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\NodeVisitorInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_NodeVisitorInterface" class is deprecated since Twig version 2.7, use "Twig\NodeVisitor\NodeVisitorInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\NodeVisitor\NodeVisitorInterface" instead */ class Twig_NodeVisitorInterface extends NodeVisitorInterface { diff --git a/lib/Twig/Parser.php b/lib/Twig/Parser.php index a676499b5..2254e2d02 100644 --- a/lib/Twig/Parser.php +++ b/lib/Twig/Parser.php @@ -4,9 +4,9 @@ use Twig\Parser; class_exists('Twig\Parser'); -@trigger_error(sprintf('Using the "Twig_Parser" class is deprecated since Twig version 2.7, use "Twig\Parser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Parser" class is deprecated since Twig version 2.7, use "Twig\Parser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Parser" instead */ class Twig_Parser extends Parser { diff --git a/lib/Twig/Profiler/Dumper/Base.php b/lib/Twig/Profiler/Dumper/Base.php index 484eeca4d..2db69b29d 100644 --- a/lib/Twig/Profiler/Dumper/Base.php +++ b/lib/Twig/Profiler/Dumper/Base.php @@ -4,9 +4,9 @@ use Twig\Profiler\Dumper\BaseDumper; class_exists('Twig\Profiler\Dumper\BaseDumper'); -@trigger_error(sprintf('Using the "Twig_Profiler_Dumper_Base" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\BaseDumper" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Dumper_Base" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\BaseDumper" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Dumper\BaseDumper" instead */ class Twig_Profiler_Dumper_Base extends BaseDumper { diff --git a/lib/Twig/Profiler/Dumper/Blackfire.php b/lib/Twig/Profiler/Dumper/Blackfire.php index 673d57042..bc7814b2f 100644 --- a/lib/Twig/Profiler/Dumper/Blackfire.php +++ b/lib/Twig/Profiler/Dumper/Blackfire.php @@ -4,9 +4,9 @@ use Twig\Profiler\Dumper\BlackfireDumper; class_exists('Twig\Profiler\Dumper\BlackfireDumper'); -@trigger_error(sprintf('Using the "Twig_Profiler_Dumper_Blackfire" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\BlackfireDumper" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Dumper_Blackfire" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\BlackfireDumper" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Dumper\BlackfireDumper" instead */ class Twig_Profiler_Dumper_Blackfire extends BlackfireDumper { diff --git a/lib/Twig/Profiler/Dumper/Html.php b/lib/Twig/Profiler/Dumper/Html.php index 114d70466..5d20aefa8 100644 --- a/lib/Twig/Profiler/Dumper/Html.php +++ b/lib/Twig/Profiler/Dumper/Html.php @@ -4,9 +4,9 @@ use Twig\Profiler\Dumper\HtmlDumper; class_exists('Twig\Profiler\Dumper\HtmlDumper'); -@trigger_error(sprintf('Using the "Twig_Profiler_Dumper_Html" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\HtmlDumper" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Dumper_Html" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\HtmlDumper" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Dumper\HtmlDumper" instead */ class Twig_Profiler_Dumper_Html extends HtmlDumper { diff --git a/lib/Twig/Profiler/Dumper/Text.php b/lib/Twig/Profiler/Dumper/Text.php index 907e3178f..5f8a12ec8 100644 --- a/lib/Twig/Profiler/Dumper/Text.php +++ b/lib/Twig/Profiler/Dumper/Text.php @@ -4,9 +4,9 @@ use Twig\Profiler\Dumper\TextDumper; class_exists('Twig\Profiler\Dumper\TextDumper'); -@trigger_error(sprintf('Using the "Twig_Profiler_Dumper_Text" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\TextDumper" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Dumper_Text" class is deprecated since Twig version 2.7, use "Twig\Profiler\Dumper\TextDumper" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Dumper\TextDumper" instead */ class Twig_Profiler_Dumper_Text extends TextDumper { diff --git a/lib/Twig/Profiler/Node/EnterProfile.php b/lib/Twig/Profiler/Node/EnterProfile.php index 0ca0d8e65..d37f6872d 100644 --- a/lib/Twig/Profiler/Node/EnterProfile.php +++ b/lib/Twig/Profiler/Node/EnterProfile.php @@ -4,9 +4,9 @@ use Twig\Profiler\Node\EnterProfileNode; class_exists('Twig\Profiler\Node\EnterProfileNode'); -@trigger_error(sprintf('Using the "Twig_Profiler_Node_EnterProfile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Node\EnterProfileNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Node_EnterProfile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Node\EnterProfileNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Node\EnterProfileNode" instead */ class Twig_Profiler_Node_EnterProfile extends EnterProfileNode { diff --git a/lib/Twig/Profiler/Node/LeaveProfile.php b/lib/Twig/Profiler/Node/LeaveProfile.php index c582a1591..2a46cd43a 100644 --- a/lib/Twig/Profiler/Node/LeaveProfile.php +++ b/lib/Twig/Profiler/Node/LeaveProfile.php @@ -4,9 +4,9 @@ use Twig\Profiler\Node\LeaveProfileNode; class_exists('Twig\Profiler\Node\LeaveProfileNode'); -@trigger_error(sprintf('Using the "Twig_Profiler_Node_LeaveProfile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Node\LeaveProfileNode" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Node_LeaveProfile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Node\LeaveProfileNode" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Node\LeaveProfileNode" instead */ class Twig_Profiler_Node_LeaveProfile extends LeaveProfileNode { diff --git a/lib/Twig/Profiler/NodeVisitor/Profiler.php b/lib/Twig/Profiler/NodeVisitor/Profiler.php index 897e251c3..106be1f2a 100644 --- a/lib/Twig/Profiler/NodeVisitor/Profiler.php +++ b/lib/Twig/Profiler/NodeVisitor/Profiler.php @@ -4,9 +4,9 @@ use Twig\Profiler\NodeVisitor\ProfilerNodeVisitor; class_exists('Twig\Profiler\NodeVisitor\ProfilerNodeVisitor'); -@trigger_error(sprintf('Using the "Twig_Profiler_NodeVisitor_Profiler" class is deprecated since Twig version 2.7, use "Twig\Profiler\NodeVisitor\ProfilerNodeVisitor" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_NodeVisitor_Profiler" class is deprecated since Twig version 2.7, use "Twig\Profiler\NodeVisitor\ProfilerNodeVisitor" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\NodeVisitor\ProfilerNodeVisitor" instead */ class Twig_Profiler_NodeVisitor_Profiler extends ProfilerNodeVisitor { diff --git a/lib/Twig/Profiler/Profile.php b/lib/Twig/Profiler/Profile.php index 0d38befd2..421d95150 100644 --- a/lib/Twig/Profiler/Profile.php +++ b/lib/Twig/Profiler/Profile.php @@ -4,9 +4,9 @@ use Twig\Profiler\Profile; class_exists('Twig\Profiler\Profile'); -@trigger_error(sprintf('Using the "Twig_Profiler_Profile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Profile" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Profiler_Profile" class is deprecated since Twig version 2.7, use "Twig\Profiler\Profile" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Profiler\Profile" instead */ class Twig_Profiler_Profile extends Profile { diff --git a/lib/Twig/RuntimeLoaderInterface.php b/lib/Twig/RuntimeLoaderInterface.php index 8edf61acc..2e24fb22f 100644 --- a/lib/Twig/RuntimeLoaderInterface.php +++ b/lib/Twig/RuntimeLoaderInterface.php @@ -4,9 +4,9 @@ use Twig\RuntimeLoader\RuntimeLoaderInterface; class_exists('Twig\RuntimeLoader\RuntimeLoaderInterface'); -@trigger_error(sprintf('Using the "Twig_RuntimeLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\RuntimeLoaderInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_RuntimeLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\RuntimeLoaderInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\RuntimeLoader\RuntimeLoaderInterface" instead */ class Twig_RuntimeLoaderInterface extends RuntimeLoaderInterface { diff --git a/lib/Twig/Sandbox/SecurityError.php b/lib/Twig/Sandbox/SecurityError.php index aa972698e..aa588259e 100644 --- a/lib/Twig/Sandbox/SecurityError.php +++ b/lib/Twig/Sandbox/SecurityError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityError; class_exists('Twig\Sandbox\SecurityError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityError" instead */ class Twig_Sandbox_SecurityError extends SecurityError { diff --git a/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php b/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php index a68cb9eae..cf3a756c6 100644 --- a/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php +++ b/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityNotAllowedFilterError; class_exists('Twig\Sandbox\SecurityNotAllowedFilterError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityNotAllowedFilterError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedFilterError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityNotAllowedFilterError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedFilterError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityNotAllowedFilterError" instead */ class Twig_Sandbox_SecurityNotAllowedFilterError extends SecurityNotAllowedFilterError { diff --git a/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php b/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php index c1e851c20..ba9976d73 100644 --- a/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php +++ b/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityNotAllowedFunctionError; class_exists('Twig\Sandbox\SecurityNotAllowedFunctionError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityNotAllowedFunctionError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedFunctionError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityNotAllowedFunctionError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedFunctionError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityNotAllowedFunctionError" instead */ class Twig_Sandbox_SecurityNotAllowedFunctionError extends SecurityNotAllowedFunctionError { diff --git a/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php b/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php index 96812ce77..a0bd36fd6 100644 --- a/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php +++ b/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityNotAllowedMethodError; class_exists('Twig\Sandbox\SecurityNotAllowedMethodError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityNotAllowedMethodError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedMethodError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityNotAllowedMethodError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedMethodError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityNotAllowedMethodError" instead */ class Twig_Sandbox_SecurityNotAllowedMethodError extends SecurityNotAllowedMethodError { diff --git a/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php b/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php index c1cc32b0d..d970bae96 100644 --- a/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php +++ b/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityNotAllowedPropertyError; class_exists('Twig\Sandbox\SecurityNotAllowedPropertyError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityNotAllowedPropertyError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedPropertyError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityNotAllowedPropertyError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedPropertyError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityNotAllowedPropertyError" instead */ class Twig_Sandbox_SecurityNotAllowedPropertyError extends SecurityNotAllowedPropertyError { diff --git a/lib/Twig/Sandbox/SecurityNotAllowedTagError.php b/lib/Twig/Sandbox/SecurityNotAllowedTagError.php index 85a1e3b94..48412c9ea 100644 --- a/lib/Twig/Sandbox/SecurityNotAllowedTagError.php +++ b/lib/Twig/Sandbox/SecurityNotAllowedTagError.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityNotAllowedTagError; class_exists('Twig\Sandbox\SecurityNotAllowedTagError'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityNotAllowedTagError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedTagError" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityNotAllowedTagError" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityNotAllowedTagError" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityNotAllowedTagError" instead */ class Twig_Sandbox_SecurityNotAllowedTagError extends SecurityNotAllowedTagError { diff --git a/lib/Twig/Sandbox/SecurityPolicy.php b/lib/Twig/Sandbox/SecurityPolicy.php index 599e74b9f..3a1223e0c 100644 --- a/lib/Twig/Sandbox/SecurityPolicy.php +++ b/lib/Twig/Sandbox/SecurityPolicy.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityPolicy; class_exists('Twig\Sandbox\SecurityPolicy'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityPolicy" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityPolicy" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityPolicy" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityPolicy" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityPolicy" instead */ class Twig_Sandbox_SecurityPolicy extends SecurityPolicy { diff --git a/lib/Twig/Sandbox/SecurityPolicyInterface.php b/lib/Twig/Sandbox/SecurityPolicyInterface.php index 1c961de06..aae29910e 100644 --- a/lib/Twig/Sandbox/SecurityPolicyInterface.php +++ b/lib/Twig/Sandbox/SecurityPolicyInterface.php @@ -4,9 +4,9 @@ use Twig\Sandbox\SecurityPolicyInterface; class_exists('Twig\Sandbox\SecurityPolicyInterface'); -@trigger_error(sprintf('Using the "Twig_Sandbox_SecurityPolicyInterface" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityPolicyInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Sandbox_SecurityPolicyInterface" class is deprecated since Twig version 2.7, use "Twig\Sandbox\SecurityPolicyInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Sandbox\SecurityPolicyInterface" instead */ class Twig_Sandbox_SecurityPolicyInterface extends SecurityPolicyInterface { diff --git a/lib/Twig/SimpleFilter.php b/lib/Twig/SimpleFilter.php index 8c59f5ff7..d7afd8094 100644 --- a/lib/Twig/SimpleFilter.php +++ b/lib/Twig/SimpleFilter.php @@ -16,7 +16,7 @@ use Twig\TwigFilter; */ class_exists(TwigFilter::class); -@trigger_error(sprintf('Using the "Twig_SimpleFilter" class is deprecated since Twig version 2.7, use "Twig\TwigFilter" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_SimpleFilter" class is deprecated since Twig version 2.7, use "Twig\TwigFilter" instead.', \E_USER_DEPRECATED); if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigFilter" instead */ diff --git a/lib/Twig/SimpleFunction.php b/lib/Twig/SimpleFunction.php index 989a8de4b..de3d3a7d7 100644 --- a/lib/Twig/SimpleFunction.php +++ b/lib/Twig/SimpleFunction.php @@ -16,7 +16,7 @@ use Twig\TwigFunction; */ class_exists(TwigFunction::class); -@trigger_error(sprintf('Using the "Twig_SimpleFunction" class is deprecated since Twig version 2.7, use "Twig\TwigFunction" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_SimpleFunction" class is deprecated since Twig version 2.7, use "Twig\TwigFunction" instead.', \E_USER_DEPRECATED); if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigFunction" instead */ diff --git a/lib/Twig/SimpleTest.php b/lib/Twig/SimpleTest.php index 3e101b3e4..3625acf3f 100644 --- a/lib/Twig/SimpleTest.php +++ b/lib/Twig/SimpleTest.php @@ -16,7 +16,7 @@ use Twig\TwigTest; */ class_exists(TwigTest::class); -@trigger_error(sprintf('Using the "Twig_SimpleTest" class is deprecated since Twig version 2.7, use "Twig\TwigTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_SimpleTest" class is deprecated since Twig version 2.7, use "Twig\TwigTest" instead.', \E_USER_DEPRECATED); if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigTest" instead */ diff --git a/lib/Twig/Source.php b/lib/Twig/Source.php index f15966842..2ca2606a7 100644 --- a/lib/Twig/Source.php +++ b/lib/Twig/Source.php @@ -4,9 +4,9 @@ use Twig\Source; class_exists('Twig\Source'); -@trigger_error(sprintf('Using the "Twig_Source" class is deprecated since Twig version 2.7, use "Twig\Source" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Source" class is deprecated since Twig version 2.7, use "Twig\Source" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Source" instead */ class Twig_Source extends Source { diff --git a/lib/Twig/SourceContextLoaderInterface.php b/lib/Twig/SourceContextLoaderInterface.php index e2667e263..93db07db3 100644 --- a/lib/Twig/SourceContextLoaderInterface.php +++ b/lib/Twig/SourceContextLoaderInterface.php @@ -4,9 +4,9 @@ use Twig\Loader\SourceContextLoaderInterface; class_exists('Twig\Loader\SourceContextLoaderInterface'); -@trigger_error(sprintf('Using the "Twig_SourceContextLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\SourceContextLoaderInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_SourceContextLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\Loader\SourceContextLoaderInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Loader\SourceContextLoaderInterface" instead */ class Twig_SourceContextLoaderInterface extends SourceContextLoaderInterface { diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index b73653160..d95642bdd 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -4,9 +4,9 @@ use Twig\Template; class_exists('Twig\Template'); -@trigger_error(sprintf('Using the "Twig_Template" class is deprecated since Twig version 2.7, use "Twig\Template" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Template" class is deprecated since Twig version 2.7, use "Twig\Template" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Template" instead */ class Twig_Template extends Template { diff --git a/lib/Twig/TemplateWrapper.php b/lib/Twig/TemplateWrapper.php index 42e304916..918762cda 100644 --- a/lib/Twig/TemplateWrapper.php +++ b/lib/Twig/TemplateWrapper.php @@ -4,9 +4,9 @@ use Twig\TemplateWrapper; class_exists('Twig\TemplateWrapper'); -@trigger_error(sprintf('Using the "Twig_TemplateWrapper" class is deprecated since Twig version 2.7, use "Twig\TemplateWrapper" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TemplateWrapper" class is deprecated since Twig version 2.7, use "Twig\TemplateWrapper" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TemplateWrapper" instead */ class Twig_TemplateWrapper extends TemplateWrapper { diff --git a/lib/Twig/Test.php b/lib/Twig/Test.php index 5926269d9..b15d99d87 100644 --- a/lib/Twig/Test.php +++ b/lib/Twig/Test.php @@ -4,9 +4,9 @@ use Twig\TwigTest; class_exists('Twig\TwigTest'); -@trigger_error(sprintf('Using the "Twig_Test" class is deprecated since Twig version 2.7, use "Twig\TwigTest" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Test" class is deprecated since Twig version 2.7, use "Twig\TwigTest" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TwigTest" instead */ class Twig_Test extends TwigTest { diff --git a/lib/Twig/Test/IntegrationTestCase.php b/lib/Twig/Test/IntegrationTestCase.php index 7338ef4bf..f2178f3fb 100644 --- a/lib/Twig/Test/IntegrationTestCase.php +++ b/lib/Twig/Test/IntegrationTestCase.php @@ -4,9 +4,9 @@ use Twig\Test\IntegrationTestCase; class_exists('Twig\Test\IntegrationTestCase'); -@trigger_error(sprintf('Using the "Twig_Test_IntegrationTestCase" class is deprecated since Twig version 2.7, use "Twig\Test\IntegrationTestCase" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Test_IntegrationTestCase" class is deprecated since Twig version 2.7, use "Twig\Test\IntegrationTestCase" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Test\IntegrationTestCase" instead */ class Twig_Test_IntegrationTestCase extends IntegrationTestCase { diff --git a/lib/Twig/Test/NodeTestCase.php b/lib/Twig/Test/NodeTestCase.php index 86a25e9c8..75a775499 100644 --- a/lib/Twig/Test/NodeTestCase.php +++ b/lib/Twig/Test/NodeTestCase.php @@ -4,9 +4,9 @@ use Twig\Test\NodeTestCase; class_exists('Twig\Test\NodeTestCase'); -@trigger_error(sprintf('Using the "Twig_Test_NodeTestCase" class is deprecated since Twig version 2.7, use "Twig\Test\NodeTestCase" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Test_NodeTestCase" class is deprecated since Twig version 2.7, use "Twig\Test\NodeTestCase" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Test\NodeTestCase" instead */ class Twig_Test_NodeTestCase extends NodeTestCase { diff --git a/lib/Twig/Token.php b/lib/Twig/Token.php index 63fe11011..e14cf9d3f 100644 --- a/lib/Twig/Token.php +++ b/lib/Twig/Token.php @@ -4,9 +4,9 @@ use Twig\Token; class_exists('Twig\Token'); -@trigger_error(sprintf('Using the "Twig_Token" class is deprecated since Twig version 2.7, use "Twig\Token" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Token" class is deprecated since Twig version 2.7, use "Twig\Token" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Token" instead */ class Twig_Token extends Token { diff --git a/lib/Twig/TokenParser.php b/lib/Twig/TokenParser.php index bed9f1ca8..8e6557a1e 100644 --- a/lib/Twig/TokenParser.php +++ b/lib/Twig/TokenParser.php @@ -4,9 +4,9 @@ use Twig\TokenParser\AbstractTokenParser; class_exists('Twig\TokenParser\AbstractTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser" class is deprecated since Twig version 2.7, use "Twig\TokenParser\AbstractTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser" class is deprecated since Twig version 2.7, use "Twig\TokenParser\AbstractTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\AbstractTokenParser" instead */ class Twig_TokenParser extends AbstractTokenParser { diff --git a/lib/Twig/TokenParser/AutoEscape.php b/lib/Twig/TokenParser/AutoEscape.php index 614318e60..4c1b731fb 100644 --- a/lib/Twig/TokenParser/AutoEscape.php +++ b/lib/Twig/TokenParser/AutoEscape.php @@ -4,9 +4,9 @@ use Twig\TokenParser\AutoEscapeTokenParser; class_exists('Twig\TokenParser\AutoEscapeTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_AutoEscape" class is deprecated since Twig version 2.7, use "Twig\TokenParser\AutoEscapeTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_AutoEscape" class is deprecated since Twig version 2.7, use "Twig\TokenParser\AutoEscapeTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\AutoEscapeTokenParser" instead */ class Twig_TokenParser_AutoEscape extends AutoEscapeTokenParser { diff --git a/lib/Twig/TokenParser/Block.php b/lib/Twig/TokenParser/Block.php index 6ad83678d..346241ef4 100644 --- a/lib/Twig/TokenParser/Block.php +++ b/lib/Twig/TokenParser/Block.php @@ -4,9 +4,9 @@ use Twig\TokenParser\BlockTokenParser; class_exists('Twig\TokenParser\BlockTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Block" class is deprecated since Twig version 2.7, use "Twig\TokenParser\BlockTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Block" class is deprecated since Twig version 2.7, use "Twig\TokenParser\BlockTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\BlockTokenParser" instead */ class Twig_TokenParser_Block extends BlockTokenParser { diff --git a/lib/Twig/TokenParser/Deprecated.php b/lib/Twig/TokenParser/Deprecated.php index f57dd9c7e..32a27d173 100644 --- a/lib/Twig/TokenParser/Deprecated.php +++ b/lib/Twig/TokenParser/Deprecated.php @@ -4,9 +4,9 @@ use Twig\TokenParser\DeprecatedTokenParser; class_exists('Twig\TokenParser\DeprecatedTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Deprecated" class is deprecated since Twig version 2.7, use "Twig\TokenParser\DeprecatedTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Deprecated" class is deprecated since Twig version 2.7, use "Twig\TokenParser\DeprecatedTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\DeprecatedTokenParser" instead */ class Twig_TokenParser_Deprecated extends DeprecatedTokenParser { diff --git a/lib/Twig/TokenParser/Do.php b/lib/Twig/TokenParser/Do.php index 895792417..45fb9d5d7 100644 --- a/lib/Twig/TokenParser/Do.php +++ b/lib/Twig/TokenParser/Do.php @@ -4,9 +4,9 @@ use Twig\TokenParser\DoTokenParser; class_exists('Twig\TokenParser\DoTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Do" class is deprecated since Twig version 2.7, use "Twig\TokenParser\DoTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Do" class is deprecated since Twig version 2.7, use "Twig\TokenParser\DoTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\DoTokenParser" instead */ class Twig_TokenParser_Do extends DoTokenParser { diff --git a/lib/Twig/TokenParser/Embed.php b/lib/Twig/TokenParser/Embed.php index 6ff9e6195..4ace2c27a 100644 --- a/lib/Twig/TokenParser/Embed.php +++ b/lib/Twig/TokenParser/Embed.php @@ -4,9 +4,9 @@ use Twig\TokenParser\EmbedTokenParser; class_exists('Twig\TokenParser\EmbedTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Embed" class is deprecated since Twig version 2.7, use "Twig\TokenParser\EmbedTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Embed" class is deprecated since Twig version 2.7, use "Twig\TokenParser\EmbedTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\EmbedTokenParser" instead */ class Twig_TokenParser_Embed extends EmbedTokenParser { diff --git a/lib/Twig/TokenParser/Extends.php b/lib/Twig/TokenParser/Extends.php index a37d3552a..7116a28db 100644 --- a/lib/Twig/TokenParser/Extends.php +++ b/lib/Twig/TokenParser/Extends.php @@ -4,9 +4,9 @@ use Twig\TokenParser\ExtendsTokenParser; class_exists('Twig\TokenParser\ExtendsTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Extends" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ExtendsTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Extends" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ExtendsTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\ExtendsTokenParser" instead */ class Twig_TokenParser_Extends extends ExtendsTokenParser { diff --git a/lib/Twig/TokenParser/Filter.php b/lib/Twig/TokenParser/Filter.php index 955170f38..f6716e73b 100644 --- a/lib/Twig/TokenParser/Filter.php +++ b/lib/Twig/TokenParser/Filter.php @@ -4,9 +4,9 @@ use Twig\TokenParser\FilterTokenParser; class_exists('Twig\TokenParser\FilterTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Filter" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FilterTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Filter" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FilterTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\FilterTokenParser" instead */ class Twig_TokenParser_Filter extends FilterTokenParser { diff --git a/lib/Twig/TokenParser/Flush.php b/lib/Twig/TokenParser/Flush.php index e23e769e5..3a1c329e1 100644 --- a/lib/Twig/TokenParser/Flush.php +++ b/lib/Twig/TokenParser/Flush.php @@ -4,9 +4,9 @@ use Twig\TokenParser\FlushTokenParser; class_exists('Twig\TokenParser\FlushTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Flush" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FlushTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Flush" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FlushTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\FlushTokenParser" instead */ class Twig_TokenParser_Flush extends FlushTokenParser { diff --git a/lib/Twig/TokenParser/For.php b/lib/Twig/TokenParser/For.php index adbff0325..9d492cd53 100644 --- a/lib/Twig/TokenParser/For.php +++ b/lib/Twig/TokenParser/For.php @@ -4,9 +4,9 @@ use Twig\TokenParser\ForTokenParser; class_exists('Twig\TokenParser\ForTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_For" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ForTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_For" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ForTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\ForTokenParser" instead */ class Twig_TokenParser_For extends ForTokenParser { diff --git a/lib/Twig/TokenParser/From.php b/lib/Twig/TokenParser/From.php index 43c969272..76bbcfb4c 100644 --- a/lib/Twig/TokenParser/From.php +++ b/lib/Twig/TokenParser/From.php @@ -4,9 +4,9 @@ use Twig\TokenParser\FromTokenParser; class_exists('Twig\TokenParser\FromTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_From" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FromTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_From" class is deprecated since Twig version 2.7, use "Twig\TokenParser\FromTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\FromTokenParser" instead */ class Twig_TokenParser_From extends FromTokenParser { diff --git a/lib/Twig/TokenParser/If.php b/lib/Twig/TokenParser/If.php index 97e1f8bb7..f8ec93dd0 100644 --- a/lib/Twig/TokenParser/If.php +++ b/lib/Twig/TokenParser/If.php @@ -4,9 +4,9 @@ use Twig\TokenParser\IfTokenParser; class_exists('Twig\TokenParser\IfTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_If" class is deprecated since Twig version 2.7, use "Twig\TokenParser\IfTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_If" class is deprecated since Twig version 2.7, use "Twig\TokenParser\IfTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\IfTokenParser" instead */ class Twig_TokenParser_If extends IfTokenParser { diff --git a/lib/Twig/TokenParser/Import.php b/lib/Twig/TokenParser/Import.php index 24a6e9dca..97cdef27b 100644 --- a/lib/Twig/TokenParser/Import.php +++ b/lib/Twig/TokenParser/Import.php @@ -4,9 +4,9 @@ use Twig\TokenParser\ImportTokenParser; class_exists('Twig\TokenParser\ImportTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Import" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ImportTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Import" class is deprecated since Twig version 2.7, use "Twig\TokenParser\ImportTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\ImportTokenParser" instead */ class Twig_TokenParser_Import extends ImportTokenParser { diff --git a/lib/Twig/TokenParser/Include.php b/lib/Twig/TokenParser/Include.php index 8c1adb8fa..e5ea32873 100644 --- a/lib/Twig/TokenParser/Include.php +++ b/lib/Twig/TokenParser/Include.php @@ -4,9 +4,9 @@ use Twig\TokenParser\IncludeTokenParser; class_exists('Twig\TokenParser\IncludeTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Include" class is deprecated since Twig version 2.7, use "Twig\TokenParser\IncludeTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Include" class is deprecated since Twig version 2.7, use "Twig\TokenParser\IncludeTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\IncludeTokenParser" instead */ class Twig_TokenParser_Include extends IncludeTokenParser { diff --git a/lib/Twig/TokenParser/Macro.php b/lib/Twig/TokenParser/Macro.php index 381b1dfb8..c7c8d1f88 100644 --- a/lib/Twig/TokenParser/Macro.php +++ b/lib/Twig/TokenParser/Macro.php @@ -4,9 +4,9 @@ use Twig\TokenParser\MacroTokenParser; class_exists('Twig\TokenParser\MacroTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Macro" class is deprecated since Twig version 2.7, use "Twig\TokenParser\MacroTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Macro" class is deprecated since Twig version 2.7, use "Twig\TokenParser\MacroTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\MacroTokenParser" instead */ class Twig_TokenParser_Macro extends MacroTokenParser { diff --git a/lib/Twig/TokenParser/Sandbox.php b/lib/Twig/TokenParser/Sandbox.php index d7d72a7b9..6136378b4 100644 --- a/lib/Twig/TokenParser/Sandbox.php +++ b/lib/Twig/TokenParser/Sandbox.php @@ -4,9 +4,9 @@ use Twig\TokenParser\SandboxTokenParser; class_exists('Twig\TokenParser\SandboxTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Sandbox" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SandboxTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Sandbox" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SandboxTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\SandboxTokenParser" instead */ class Twig_TokenParser_Sandbox extends SandboxTokenParser { diff --git a/lib/Twig/TokenParser/Set.php b/lib/Twig/TokenParser/Set.php index c0bf202a4..8ee59d05e 100644 --- a/lib/Twig/TokenParser/Set.php +++ b/lib/Twig/TokenParser/Set.php @@ -4,9 +4,9 @@ use Twig\TokenParser\SetTokenParser; class_exists('Twig\TokenParser\SetTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Set" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SetTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Set" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SetTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\SetTokenParser" instead */ class Twig_TokenParser_Set extends SetTokenParser { diff --git a/lib/Twig/TokenParser/Spaceless.php b/lib/Twig/TokenParser/Spaceless.php index eef230a1c..d313cf9fd 100644 --- a/lib/Twig/TokenParser/Spaceless.php +++ b/lib/Twig/TokenParser/Spaceless.php @@ -4,9 +4,9 @@ use Twig\TokenParser\SpacelessTokenParser; class_exists('Twig\TokenParser\SpacelessTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Spaceless" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SpacelessTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Spaceless" class is deprecated since Twig version 2.7, use "Twig\TokenParser\SpacelessTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\SpacelessTokenParser" instead */ class Twig_TokenParser_Spaceless extends SpacelessTokenParser { diff --git a/lib/Twig/TokenParser/Use.php b/lib/Twig/TokenParser/Use.php index cc764ee71..0ef0d2a86 100644 --- a/lib/Twig/TokenParser/Use.php +++ b/lib/Twig/TokenParser/Use.php @@ -4,9 +4,9 @@ use Twig\TokenParser\UseTokenParser; class_exists('Twig\TokenParser\UseTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_Use" class is deprecated since Twig version 2.7, use "Twig\TokenParser\UseTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_Use" class is deprecated since Twig version 2.7, use "Twig\TokenParser\UseTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\UseTokenParser" instead */ class Twig_TokenParser_Use extends UseTokenParser { diff --git a/lib/Twig/TokenParser/With.php b/lib/Twig/TokenParser/With.php index d5973fcd5..e162097a4 100644 --- a/lib/Twig/TokenParser/With.php +++ b/lib/Twig/TokenParser/With.php @@ -4,9 +4,9 @@ use Twig\TokenParser\WithTokenParser; class_exists('Twig\TokenParser\WithTokenParser'); -@trigger_error(sprintf('Using the "Twig_TokenParser_With" class is deprecated since Twig version 2.7, use "Twig\TokenParser\WithTokenParser" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParser_With" class is deprecated since Twig version 2.7, use "Twig\TokenParser\WithTokenParser" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\WithTokenParser" instead */ class Twig_TokenParser_With extends WithTokenParser { diff --git a/lib/Twig/TokenParserInterface.php b/lib/Twig/TokenParserInterface.php index 1ed1cadf9..b7d392fc3 100644 --- a/lib/Twig/TokenParserInterface.php +++ b/lib/Twig/TokenParserInterface.php @@ -4,9 +4,9 @@ use Twig\TokenParser\TokenParserInterface; class_exists('Twig\TokenParser\TokenParserInterface'); -@trigger_error(sprintf('Using the "Twig_TokenParserInterface" class is deprecated since Twig version 2.7, use "Twig\TokenParser\TokenParserInterface" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenParserInterface" class is deprecated since Twig version 2.7, use "Twig\TokenParser\TokenParserInterface" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenParser\TokenParserInterface" instead */ class Twig_TokenParserInterface extends TokenParserInterface { diff --git a/lib/Twig/TokenStream.php b/lib/Twig/TokenStream.php index 0305fa036..f5922b50f 100644 --- a/lib/Twig/TokenStream.php +++ b/lib/Twig/TokenStream.php @@ -4,9 +4,9 @@ use Twig\TokenStream; class_exists('Twig\TokenStream'); -@trigger_error(sprintf('Using the "Twig_TokenStream" class is deprecated since Twig version 2.7, use "Twig\TokenStream" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_TokenStream" class is deprecated since Twig version 2.7, use "Twig\TokenStream" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\TokenStream" instead */ class Twig_TokenStream extends TokenStream { diff --git a/lib/Twig/Util/DeprecationCollector.php b/lib/Twig/Util/DeprecationCollector.php index 5b3f55edd..62d750616 100644 --- a/lib/Twig/Util/DeprecationCollector.php +++ b/lib/Twig/Util/DeprecationCollector.php @@ -4,9 +4,9 @@ use Twig\Util\DeprecationCollector; class_exists('Twig\Util\DeprecationCollector'); -@trigger_error(sprintf('Using the "Twig_Util_DeprecationCollector" class is deprecated since Twig version 2.7, use "Twig\Util\DeprecationCollector" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Util_DeprecationCollector" class is deprecated since Twig version 2.7, use "Twig\Util\DeprecationCollector" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Util\DeprecationCollector" instead */ class Twig_Util_DeprecationCollector extends DeprecationCollector { diff --git a/lib/Twig/Util/TemplateDirIterator.php b/lib/Twig/Util/TemplateDirIterator.php index e84b9d818..d61337e71 100644 --- a/lib/Twig/Util/TemplateDirIterator.php +++ b/lib/Twig/Util/TemplateDirIterator.php @@ -4,9 +4,9 @@ use Twig\Util\TemplateDirIterator; class_exists('Twig\Util\TemplateDirIterator'); -@trigger_error(sprintf('Using the "Twig_Util_TemplateDirIterator" class is deprecated since Twig version 2.7, use "Twig\Util\TemplateDirIterator" instead.'), E_USER_DEPRECATED); +@trigger_error('Using the "Twig_Util_TemplateDirIterator" class is deprecated since Twig version 2.7, use "Twig\Util\TemplateDirIterator" instead.', \E_USER_DEPRECATED); -if (\false) { +if (false) { /** @deprecated since Twig 2.7, use "Twig\Util\TemplateDirIterator" instead */ class Twig_Util_TemplateDirIterator extends TemplateDirIterator { diff --git a/src/Compiler.php b/src/Compiler.php index 56933e203..865d885c8 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -141,14 +141,14 @@ class Compiler public function repr($value) { if (\is_int($value) || \is_float($value)) { - if (false !== $locale = setlocale(LC_NUMERIC, '0')) { - setlocale(LC_NUMERIC, 'C'); + if (false !== $locale = setlocale(\LC_NUMERIC, '0')) { + setlocale(\LC_NUMERIC, 'C'); } $this->raw(var_export($value, true)); if (false !== $locale) { - setlocale(LC_NUMERIC, $locale); + setlocale(\LC_NUMERIC, $locale); } } elseif (null === $value) { $this->raw('null'); diff --git a/src/Environment.php b/src/Environment.php index e3dfaa167..a2b27d71c 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -38,12 +38,12 @@ use Twig\TokenParser\TokenParserInterface; */ class Environment { - const VERSION = '2.14.5-DEV'; - const VERSION_ID = 21405; - const MAJOR_VERSION = 2; - const MINOR_VERSION = 14; - const RELEASE_VERSION = 5; - const EXTRA_VERSION = 'DEV'; + public const VERSION = '2.14.5-DEV'; + public const VERSION_ID = 21405; + public const MAJOR_VERSION = 2; + public const MINOR_VERSION = 14; + public const RELEASE_VERSION = 5; + public const EXTRA_VERSION = 'DEV'; private $charset; private $loader; @@ -118,7 +118,7 @@ class Environment $this->setCharset($options['charset']); $this->baseTemplateClass = '\\'.ltrim($options['base_template_class'], '\\'); if ('\\'.Template::class !== $this->baseTemplateClass && '\Twig_Template' !== $this->baseTemplateClass) { - @trigger_error('The "base_template_class" option on '.__CLASS__.' is deprecated since Twig 2.7.0.', E_USER_DEPRECATED); + @trigger_error('The "base_template_class" option on '.__CLASS__.' is deprecated since Twig 2.7.0.', \E_USER_DEPRECATED); } $this->autoReload = null === $options['auto_reload'] ? $this->debug : (bool) $options['auto_reload']; $this->strictVariables = (bool) $options['strict_variables']; @@ -138,7 +138,7 @@ class Environment public function getBaseTemplateClass() { if (1 > \func_num_args() || \func_get_arg(0)) { - @trigger_error('The '.__METHOD__.' is deprecated since Twig 2.7.0.', E_USER_DEPRECATED); + @trigger_error('The '.__METHOD__.' is deprecated since Twig 2.7.0.', \E_USER_DEPRECATED); } return $this->baseTemplateClass; @@ -151,7 +151,7 @@ class Environment */ public function setBaseTemplateClass($class) { - @trigger_error('The '.__METHOD__.' is deprecated since Twig 2.7.0.', E_USER_DEPRECATED); + @trigger_error('The '.__METHOD__.' is deprecated since Twig 2.7.0.', \E_USER_DEPRECATED); $this->baseTemplateClass = $class; $this->updateOptionsHash(); @@ -271,7 +271,7 @@ class Environment } elseif ($cache instanceof CacheInterface) { $this->originalCache = $this->cache = $cache; } else { - throw new \LogicException(sprintf('Cache can only be a string, false, or a \Twig\Cache\CacheInterface implementation.')); + throw new \LogicException('Cache can only be a string, false, or a \Twig\Cache\CacheInterface implementation.'); } } @@ -351,7 +351,7 @@ class Environment } if ($name instanceof Template) { - @trigger_error('Passing a \Twig\Template instance to '.__METHOD__.' is deprecated since Twig 2.7.0, use \Twig\TemplateWrapper instead.', E_USER_DEPRECATED); + @trigger_error('Passing a \Twig\Template instance to '.__METHOD__.' is deprecated since Twig 2.7.0, use \Twig\TemplateWrapper instead.', \E_USER_DEPRECATED); return new TemplateWrapper($this, $name); } @@ -982,8 +982,8 @@ class Environment { $this->optionsHash = implode(':', [ $this->extensionSet->getSignature(), - PHP_MAJOR_VERSION, - PHP_MINOR_VERSION, + \PHP_MAJOR_VERSION, + \PHP_MINOR_VERSION, self::VERSION, (int) $this->debug, $this->baseTemplateClass, diff --git a/src/Error/Error.php b/src/Error/Error.php index 21e10e632..13f6f745c 100644 --- a/src/Error/Error.php +++ b/src/Error/Error.php @@ -62,7 +62,7 @@ class Error extends \Exception if (null === $source) { $name = null; } elseif (!$source instanceof Source && !$source instanceof \Twig_Source) { - @trigger_error(sprintf('Passing a string as a source to %s is deprecated since Twig 2.6.1; pass a Twig\Source instance instead.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing a string as a source to %s is deprecated since Twig 2.6.1; pass a Twig\Source instance instead.', __CLASS__), \E_USER_DEPRECATED); $name = $source; } else { $name = $source->getName(); @@ -196,7 +196,7 @@ class Error extends \Exception $template = null; $templateClass = null; - $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT); + $backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS | \DEBUG_BACKTRACE_PROVIDE_OBJECT); foreach ($backtrace as $trace) { if (isset($trace['object']) && $trace['object'] instanceof Template && 'Twig\Template' !== \get_class($trace['object'])) { $currentClass = \get_class($trace['object']); diff --git a/src/ExpressionParser.php b/src/ExpressionParser.php index 59cfbba20..1d9c87687 100644 --- a/src/ExpressionParser.php +++ b/src/ExpressionParser.php @@ -45,8 +45,8 @@ use Twig\Node\Node; */ class ExpressionParser { - const OPERATOR_LEFT = 1; - const OPERATOR_RIGHT = 2; + public const OPERATOR_LEFT = 1; + public const OPERATOR_RIGHT = 2; private $parser; private $env; @@ -618,7 +618,7 @@ class ExpressionParser $value = $this->parsePrimaryExpression(); if (!$this->checkConstantExpression($value)) { - throw new SyntaxError(sprintf('A default value for an argument must be a constant (a boolean, a string, a number, or an array).'), $token->getLine(), $stream->getSourceContext()); + throw new SyntaxError('A default value for an argument must be a constant (a boolean, a string, a number, or an array).', $token->getLine(), $stream->getSourceContext()); } } else { $value = $this->parseExpression(0, $allowArrow); @@ -750,7 +750,7 @@ class ExpressionParser $src = $stream->getSourceContext(); $message .= sprintf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $stream->getCurrent()->getLine()); - @trigger_error($message, E_USER_DEPRECATED); + @trigger_error($message, \E_USER_DEPRECATED); } return $test->getNodeClass(); @@ -776,7 +776,7 @@ class ExpressionParser $src = $this->parser->getStream()->getSourceContext(); $message .= sprintf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $line); - @trigger_error($message, E_USER_DEPRECATED); + @trigger_error($message, \E_USER_DEPRECATED); } return $function->getNodeClass(); @@ -802,7 +802,7 @@ class ExpressionParser $src = $this->parser->getStream()->getSourceContext(); $message .= sprintf(' in %s at line %d.', $src->getPath() ?: $src->getName(), $line); - @trigger_error($message, E_USER_DEPRECATED); + @trigger_error($message, \E_USER_DEPRECATED); } return $filter->getNodeClass(); diff --git a/src/Extension/CoreExtension.php b/src/Extension/CoreExtension.php index e3ab3ca62..2f8ed8032 100644 --- a/src/Extension/CoreExtension.php +++ b/src/Extension/CoreExtension.php @@ -89,7 +89,7 @@ final class CoreExtension extends AbstractExtension */ public function setEscaper($strategy, callable $callable) { - @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.11; use "%s::setEscaper" instead.', __METHOD__, EscaperExtension::class), E_USER_DEPRECATED); + @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.11; use "%s::setEscaper" instead.', __METHOD__, EscaperExtension::class), \E_USER_DEPRECATED); $this->escapers[$strategy] = $callable; } @@ -103,8 +103,8 @@ final class CoreExtension extends AbstractExtension */ public function getEscapers(/* $triggerDeprecation = true */) { - if (0 === \func_num_args() || func_get_arg(0)) { - @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.11; use "%s::getEscapers" instead.', __METHOD__, EscaperExtension::class), E_USER_DEPRECATED); + if (0 === \func_num_args() || \func_get_arg(0)) { + @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.11; use "%s::getEscapers" instead.', __METHOD__, EscaperExtension::class), \E_USER_DEPRECATED); } return $this->escapers; @@ -522,6 +522,7 @@ function twig_date_converter(Environment $env, $date = null, $timezone = null) if (null === $date) { $date = 'now'; } + return new \DateTime($date, false !== $timezone ? $timezone : $env->getExtension(CoreExtension::class)->getTimezone()); } @@ -620,7 +621,7 @@ function twig_number_format_filter(Environment $env, $number, $decimal = null, $ function twig_urlencode_filter($url) { if (\is_array($url)) { - return http_build_query($url, '', '&', PHP_QUERY_RFC3986); + return http_build_query($url, '', '&', \PHP_QUERY_RFC3986); } return rawurlencode($url); @@ -1074,7 +1075,7 @@ function twig_lower_filter(Environment $env, $string) function twig_title_string_filter(Environment $env, $string) { if (null !== $charset = $env->getCharset()) { - return mb_convert_case($string, MB_CASE_TITLE, $charset); + return mb_convert_case($string, \MB_CASE_TITLE, $charset); } return ucwords(strtolower($string)); diff --git a/src/Extension/EscaperExtension.php b/src/Extension/EscaperExtension.php index f7546d2b5..922e05fb8 100644 --- a/src/Extension/EscaperExtension.php +++ b/src/Extension/EscaperExtension.php @@ -234,18 +234,18 @@ function twig_escape_filter(Environment $env, $string, $strategy = 'html', $char ]; if (isset($htmlspecialcharsCharsets[$charset])) { - return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, $charset); + return htmlspecialchars($string, \ENT_QUOTES | \ENT_SUBSTITUTE, $charset); } if (isset($htmlspecialcharsCharsets[strtoupper($charset)])) { // cache the lowercase variant for future iterations $htmlspecialcharsCharsets[$charset] = true; - return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, $charset); + return htmlspecialchars($string, \ENT_QUOTES | \ENT_SUBSTITUTE, $charset); } $string = twig_convert_encoding($string, 'UTF-8', $charset); - $string = htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); + $string = htmlspecialchars($string, \ENT_QUOTES | \ENT_SUBSTITUTE, 'UTF-8'); return iconv('UTF-8', $charset, $string); diff --git a/src/Lexer.php b/src/Lexer.php index b910ec8c6..edde9a7a0 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -37,18 +37,18 @@ class Lexer private $positions; private $currentVarBlockLine; - const STATE_DATA = 0; - const STATE_BLOCK = 1; - const STATE_VAR = 2; - const STATE_STRING = 3; - const STATE_INTERPOLATION = 4; + public const STATE_DATA = 0; + public const STATE_BLOCK = 1; + public const STATE_VAR = 2; + public const STATE_STRING = 3; + public const STATE_INTERPOLATION = 4; - const REGEX_NAME = '/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A'; - const REGEX_NUMBER = '/[0-9]+(?:\.[0-9]+)?([Ee][\+\-][0-9]+)?/A'; - const REGEX_STRING = '/"([^#"\\\\]*(?:\\\\.[^#"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As'; - const REGEX_DQ_STRING_DELIM = '/"/A'; - const REGEX_DQ_STRING_PART = '/[^#"\\\\]*(?:(?:\\\\.|#(?!\{))[^#"\\\\]*)*/As'; - const PUNCTUATION = '()[]{}?:.,|'; + public const REGEX_NAME = '/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A'; + public const REGEX_NUMBER = '/[0-9]+(?:\.[0-9]+)?([Ee][\+\-][0-9]+)?/A'; + public const REGEX_STRING = '/"([^#"\\\\]*(?:\\\\.[^#"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As'; + public const REGEX_DQ_STRING_DELIM = '/"/A'; + public const REGEX_DQ_STRING_PART = '/[^#"\\\\]*(?:(?:\\\\.|#(?!\{))[^#"\\\\]*)*/As'; + public const PUNCTUATION = '()[]{}?:.,|'; public function __construct(Environment $env, array $options = []) { @@ -167,7 +167,7 @@ class Lexer $this->position = -1; // find all token starts in one go - preg_match_all($this->regexes['lex_tokens_start'], $this->code, $matches, PREG_OFFSET_CAPTURE); + preg_match_all($this->regexes['lex_tokens_start'], $this->code, $matches, \PREG_OFFSET_CAPTURE); $this->positions = $matches; while ($this->cursor < $this->end) { @@ -322,7 +322,7 @@ class Lexer // numbers elseif (preg_match(self::REGEX_NUMBER, $this->code, $match, 0, $this->cursor)) { $number = (float) $match[0]; // floats - if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) { + if (ctype_digit($match[0]) && $number <= \PHP_INT_MAX) { $number = (int) $match[0]; // integers lower than the maximum } $this->pushToken(/* Token::NUMBER_TYPE */ 6, $number); @@ -368,7 +368,7 @@ class Lexer private function lexRawData() { - if (!preg_match($this->regexes['lex_raw_data'], $this->code, $match, PREG_OFFSET_CAPTURE, $this->cursor)) { + if (!preg_match($this->regexes['lex_raw_data'], $this->code, $match, \PREG_OFFSET_CAPTURE, $this->cursor)) { throw new SyntaxError('Unexpected end of file: Unclosed "verbatim" block.', $this->lineno, $this->source); } @@ -392,7 +392,7 @@ class Lexer private function lexComment() { - if (!preg_match($this->regexes['lex_comment'], $this->code, $match, PREG_OFFSET_CAPTURE, $this->cursor)) { + if (!preg_match($this->regexes['lex_comment'], $this->code, $match, \PREG_OFFSET_CAPTURE, $this->cursor)) { throw new SyntaxError('Unclosed comment.', $this->lineno, $this->source); } diff --git a/src/Loader/FilesystemLoader.php b/src/Loader/FilesystemLoader.php index 41ad6da3d..86a1996ff 100644 --- a/src/Loader/FilesystemLoader.php +++ b/src/Loader/FilesystemLoader.php @@ -22,7 +22,7 @@ use Twig\Source; class FilesystemLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface { /** Identifier of the main namespace. */ - const MAIN_NAMESPACE = '__main__'; + public const MAIN_NAMESPACE = '__main__'; protected $paths = []; protected $cache = []; @@ -37,7 +37,7 @@ class FilesystemLoader implements LoaderInterface, ExistsLoaderInterface, Source public function __construct($paths = [], string $rootPath = null) { $this->rootPath = (null === $rootPath ? getcwd() : $rootPath).\DIRECTORY_SEPARATOR; - if ($rootPath !== null && false !== ($realPath = realpath($rootPath))) { + if (null !== $rootPath && false !== ($realPath = realpath($rootPath))) { $this->rootPath = $realPath.\DIRECTORY_SEPARATOR; } @@ -304,7 +304,7 @@ class FilesystemLoader implements LoaderInterface, ExistsLoaderInterface, Source && ':' === $file[1] && strspn($file, '/\\', 2, 1) ) - || null !== parse_url($file, PHP_URL_SCHEME) + || null !== parse_url($file, \PHP_URL_SCHEME) ; } } diff --git a/src/Node/ModuleNode.php b/src/Node/ModuleNode.php index 723a4fa8e..29af67706 100644 --- a/src/Node/ModuleNode.php +++ b/src/Node/ModuleNode.php @@ -33,7 +33,7 @@ class ModuleNode extends Node public function __construct(Node $body, ?AbstractExpression $parent, Node $blocks, Node $macros, Node $traits, $embeddedTemplates, Source $source) { if (__CLASS__ !== static::class) { - @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED); + @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', \E_USER_DEPRECATED); } $nodes = [ diff --git a/src/Node/Node.php b/src/Node/Node.php index bb1efea0f..4d840de7c 100644 --- a/src/Node/Node.php +++ b/src/Node/Node.php @@ -181,7 +181,7 @@ class Node implements \Countable, \IteratorAggregate { $triggerDeprecation = 2 > \func_num_args() || \func_get_arg(1); if ($triggerDeprecation) { - @trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use setSourceContext() instead.', E_USER_DEPRECATED); + @trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use setSourceContext() instead.', \E_USER_DEPRECATED); } $this->name = $name; diff --git a/src/NodeTraverser.php b/src/NodeTraverser.php index 625b049af..12c5a16d6 100644 --- a/src/NodeTraverser.php +++ b/src/NodeTraverser.php @@ -71,7 +71,7 @@ final class NodeTraverser } } else { if (false === $m) { - @trigger_error('Returning "false" to remove a Node from NodeVisitorInterface::leaveNode() is deprecated since Twig version 2.9; return "null" instead.', E_USER_DEPRECATED); + @trigger_error('Returning "false" to remove a Node from NodeVisitorInterface::leaveNode() is deprecated since Twig version 2.9; return "null" instead.', \E_USER_DEPRECATED); } $node->removeNode($k); diff --git a/src/NodeVisitor/OptimizerNodeVisitor.php b/src/NodeVisitor/OptimizerNodeVisitor.php index 9f7cae4da..62f7aafba 100644 --- a/src/NodeVisitor/OptimizerNodeVisitor.php +++ b/src/NodeVisitor/OptimizerNodeVisitor.php @@ -37,12 +37,12 @@ use Twig\Node\PrintNode; */ final class OptimizerNodeVisitor extends AbstractNodeVisitor { - const OPTIMIZE_ALL = -1; - const OPTIMIZE_NONE = 0; - const OPTIMIZE_FOR = 2; - const OPTIMIZE_RAW_FILTER = 4; + public const OPTIMIZE_ALL = -1; + public const OPTIMIZE_NONE = 0; + public const OPTIMIZE_FOR = 2; + public const OPTIMIZE_RAW_FILTER = 4; // obsolete, does not do anything - const OPTIMIZE_VAR_ACCESS = 8; + public const OPTIMIZE_VAR_ACCESS = 8; private $loops = []; private $loopsTargets = []; diff --git a/src/Parser.php b/src/Parser.php index 8a937e329..dd66573cd 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -250,7 +250,7 @@ class Parser */ public function isReservedMacroName($name) { - @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.7 and will be removed in 3.0.', __METHOD__), E_USER_DEPRECATED); + @trigger_error(sprintf('The "%s" method is deprecated since Twig 2.7 and will be removed in 3.0.', __METHOD__), \E_USER_DEPRECATED); return false; } @@ -360,7 +360,7 @@ class Parser // to be removed completely in Twig 3.0 if (!$nested && $node instanceof SpacelessNode) { - @trigger_error(sprintf('Using the spaceless tag at the root level of a child template in "%s" at line %d is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine()), E_USER_DEPRECATED); + @trigger_error(sprintf('Using the spaceless tag at the root level of a child template in "%s" at line %d is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine()), \E_USER_DEPRECATED); } // "block" tags that are not captured (see above) are only used for defining @@ -368,7 +368,7 @@ class Parser // expected as the definition is not part of the default template code flow. if ($nested && ($node instanceof BlockReferenceNode || $node instanceof \Twig_Node_BlockReference)) { //throw new SyntaxError('A block definition cannot be nested under non-capturing nodes.', $node->getTemplateLine(), $this->stream->getSourceContext()); - @trigger_error(sprintf('Nesting a block definition under a non-capturing node in "%s" at line %d is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine()), E_USER_DEPRECATED); + @trigger_error(sprintf('Nesting a block definition under a non-capturing node in "%s" at line %d is deprecated since Twig 2.5.0 and will become a syntax error in 3.0.', $this->stream->getSourceContext()->getName(), $node->getTemplateLine()), \E_USER_DEPRECATED); return; } diff --git a/src/Profiler/Profile.php b/src/Profiler/Profile.php index 72ae4786f..284247286 100644 --- a/src/Profiler/Profile.php +++ b/src/Profiler/Profile.php @@ -33,7 +33,7 @@ class Profile implements \IteratorAggregate, \Serializable public function __construct(string $template = 'main', string $type = self::ROOT, string $name = 'main') { if (__CLASS__ !== static::class) { - @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED); + @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', \E_USER_DEPRECATED); } $this->template = $template; diff --git a/src/Sandbox/SecurityNotAllowedFilterError.php b/src/Sandbox/SecurityNotAllowedFilterError.php index 767ec5b3d..33c84f223 100644 --- a/src/Sandbox/SecurityNotAllowedFilterError.php +++ b/src/Sandbox/SecurityNotAllowedFilterError.php @@ -25,13 +25,13 @@ class SecurityNotAllowedFilterError extends SecurityError public function __construct(string $message, string $functionName, int $lineno = -1, string $filename = null, \Exception $previous = null) { if (-1 !== $lineno) { - @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $filename) { - @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $previous) { - @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } parent::__construct($message, $lineno, $filename, $previous); $this->filterName = $functionName; diff --git a/src/Sandbox/SecurityNotAllowedFunctionError.php b/src/Sandbox/SecurityNotAllowedFunctionError.php index 5a3013998..5151762b5 100644 --- a/src/Sandbox/SecurityNotAllowedFunctionError.php +++ b/src/Sandbox/SecurityNotAllowedFunctionError.php @@ -25,13 +25,13 @@ class SecurityNotAllowedFunctionError extends SecurityError public function __construct(string $message, string $functionName, int $lineno = -1, string $filename = null, \Exception $previous = null) { if (-1 !== $lineno) { - @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $filename) { - @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $previous) { - @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } parent::__construct($message, $lineno, $filename, $previous); $this->functionName = $functionName; diff --git a/src/Sandbox/SecurityNotAllowedMethodError.php b/src/Sandbox/SecurityNotAllowedMethodError.php index c8103ea0f..62c3fddd5 100644 --- a/src/Sandbox/SecurityNotAllowedMethodError.php +++ b/src/Sandbox/SecurityNotAllowedMethodError.php @@ -26,13 +26,13 @@ class SecurityNotAllowedMethodError extends SecurityError public function __construct(string $message, string $className, string $methodName, int $lineno = -1, string $filename = null, \Exception $previous = null) { if (-1 !== $lineno) { - @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $filename) { - @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $previous) { - @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } parent::__construct($message, $lineno, $filename, $previous); $this->className = $className; diff --git a/src/Sandbox/SecurityNotAllowedPropertyError.php b/src/Sandbox/SecurityNotAllowedPropertyError.php index d148f08d2..a9e4aff27 100644 --- a/src/Sandbox/SecurityNotAllowedPropertyError.php +++ b/src/Sandbox/SecurityNotAllowedPropertyError.php @@ -26,13 +26,13 @@ class SecurityNotAllowedPropertyError extends SecurityError public function __construct(string $message, string $className, string $propertyName, int $lineno = -1, string $filename = null, \Exception $previous = null) { if (-1 !== $lineno) { - @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $filename) { - @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $previous) { - @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } parent::__construct($message, $lineno, $filename, $previous); $this->className = $className; diff --git a/src/Sandbox/SecurityNotAllowedTagError.php b/src/Sandbox/SecurityNotAllowedTagError.php index 25f636113..0abc49ef3 100644 --- a/src/Sandbox/SecurityNotAllowedTagError.php +++ b/src/Sandbox/SecurityNotAllowedTagError.php @@ -25,13 +25,13 @@ class SecurityNotAllowedTagError extends SecurityError public function __construct(string $message, string $tagName, int $lineno = -1, string $filename = null, \Exception $previous = null) { if (-1 !== $lineno) { - @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $filename) { - @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } if (null !== $previous) { - @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), E_USER_DEPRECATED); + @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); } parent::__construct($message, $lineno, $filename, $previous); $this->tagName = $tagName; diff --git a/src/Template.php b/src/Template.php index bb3ee7f1a..76d55cbcb 100644 --- a/src/Template.php +++ b/src/Template.php @@ -29,9 +29,9 @@ use Twig\Error\RuntimeError; */ abstract class Template { - const ANY_CALL = 'any'; - const ARRAY_CALL = 'array'; - const METHOD_CALL = 'method'; + public const ANY_CALL = 'any'; + public const ARRAY_CALL = 'array'; + public const METHOD_CALL = 'method'; protected $parent; protected $parents = []; diff --git a/src/Test/IntegrationTestCase.php b/src/Test/IntegrationTestCase.php index 6b6f29e6d..544708986 100644 --- a/src/Test/IntegrationTestCase.php +++ b/src/Test/IntegrationTestCase.php @@ -191,7 +191,7 @@ abstract class IntegrationTestCase extends TestCase $deprecations = []; try { $prevHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$deprecations, &$prevHandler) { - if (E_USER_DEPRECATED === $type) { + if (\E_USER_DEPRECATED === $type) { $deprecations[] = $msg; return true; diff --git a/src/TokenParser/FilterTokenParser.php b/src/TokenParser/FilterTokenParser.php index e57fc90aa..5f66c5829 100644 --- a/src/TokenParser/FilterTokenParser.php +++ b/src/TokenParser/FilterTokenParser.php @@ -33,7 +33,7 @@ final class FilterTokenParser extends AbstractTokenParser $stream = $this->parser->getStream(); $lineno = $token->getLine(); - @trigger_error(sprintf('The "filter" tag in "%s" at line %d is deprecated since Twig 2.9, use the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), E_USER_DEPRECATED); + @trigger_error(sprintf('The "filter" tag in "%s" at line %d is deprecated since Twig 2.9, use the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECATED); $name = $this->parser->getVarName(); $ref = new BlockReferenceExpression(new ConstantExpression($name, $lineno), null, $lineno, $this->getTag()); diff --git a/src/TokenParser/ForTokenParser.php b/src/TokenParser/ForTokenParser.php index 34430f00b..a7987d95d 100644 --- a/src/TokenParser/ForTokenParser.php +++ b/src/TokenParser/ForTokenParser.php @@ -43,7 +43,7 @@ final class ForTokenParser extends AbstractTokenParser $ifexpr = null; if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'if')) { - @trigger_error(sprintf('Using an "if" condition on "for" tag in "%s" at line %d is deprecated since Twig 2.10.0, use a "filter" filter or an "if" condition inside the "for" body instead (if your condition depends on a variable updated inside the loop).', $stream->getSourceContext()->getName(), $lineno), E_USER_DEPRECATED); + @trigger_error(sprintf('Using an "if" condition on "for" tag in "%s" at line %d is deprecated since Twig 2.10.0, use a "filter" filter or an "if" condition inside the "for" body instead (if your condition depends on a variable updated inside the loop).', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECATED); $ifexpr = $this->parser->getExpressionParser()->parseExpression(); } diff --git a/src/TokenParser/SpacelessTokenParser.php b/src/TokenParser/SpacelessTokenParser.php index b58624d5e..a609c2f7e 100644 --- a/src/TokenParser/SpacelessTokenParser.php +++ b/src/TokenParser/SpacelessTokenParser.php @@ -33,7 +33,7 @@ final class SpacelessTokenParser extends AbstractTokenParser $stream = $this->parser->getStream(); $lineno = $token->getLine(); - @trigger_error(sprintf('The spaceless tag in "%s" at line %d is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), E_USER_DEPRECATED); + @trigger_error(sprintf('The spaceless tag in "%s" at line %d is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead.', $stream->getSourceContext()->getName(), $lineno), \E_USER_DEPRECATED); $stream->expect(/* Token::BLOCK_END_TYPE */ 3); $body = $this->parser->subparse([$this, 'decideSpacelessEnd'], true); diff --git a/src/TwigFilter.php b/src/TwigFilter.php index 24fd8731e..4351cf139 100644 --- a/src/TwigFilter.php +++ b/src/TwigFilter.php @@ -40,7 +40,7 @@ class TwigFilter public function __construct(string $name, $callable = null, array $options = []) { if (__CLASS__ !== static::class) { - @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED); + @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', \E_USER_DEPRECATED); } $this->name = $name; diff --git a/src/TwigFunction.php b/src/TwigFunction.php index e4f8c78ac..e0d961f86 100644 --- a/src/TwigFunction.php +++ b/src/TwigFunction.php @@ -40,7 +40,7 @@ class TwigFunction public function __construct(string $name, $callable = null, array $options = []) { if (__CLASS__ !== static::class) { - @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED); + @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', \E_USER_DEPRECATED); } $this->name = $name; diff --git a/src/TwigTest.php b/src/TwigTest.php index 9929d4e22..6a58a56e3 100644 --- a/src/TwigTest.php +++ b/src/TwigTest.php @@ -39,7 +39,7 @@ class TwigTest public function __construct(string $name, $callable = null, array $options = []) { if (__CLASS__ !== static::class) { - @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED); + @trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', \E_USER_DEPRECATED); } $this->name = $name; diff --git a/src/Util/DeprecationCollector.php b/src/Util/DeprecationCollector.php index d37369841..17c169f74 100644 --- a/src/Util/DeprecationCollector.php +++ b/src/Util/DeprecationCollector.php @@ -57,7 +57,7 @@ final class DeprecationCollector { $deprecations = []; set_error_handler(function ($type, $msg) use (&$deprecations) { - if (E_USER_DEPRECATED === $type) { + if (\E_USER_DEPRECATED === $type) { $deprecations[] = $msg; } });