@@ -155,6 +155,8 @@ public function useYield(): bool
155155
156156 /**
157157 * Enables debugging mode.
158+ *
159+ * @return void
158160 */
159161 public function enableDebug ()
160162 {
@@ -164,6 +166,8 @@ public function enableDebug()
164166
165167 /**
166168 * Disables debugging mode.
169+ *
170+ * @return void
167171 */
168172 public function disableDebug ()
169173 {
@@ -183,6 +187,8 @@ public function isDebug()
183187
184188 /**
185189 * Enables the auto_reload option.
190+ *
191+ * @return void
186192 */
187193 public function enableAutoReload ()
188194 {
@@ -191,6 +197,8 @@ public function enableAutoReload()
191197
192198 /**
193199 * Disables the auto_reload option.
200+ *
201+ * @return void
194202 */
195203 public function disableAutoReload ()
196204 {
@@ -209,6 +217,8 @@ public function isAutoReload()
209217
210218 /**
211219 * Enables the strict_variables option.
220+ *
221+ * @return void
212222 */
213223 public function enableStrictVariables ()
214224 {
@@ -218,6 +228,8 @@ public function enableStrictVariables()
218228
219229 /**
220230 * Disables the strict_variables option.
231+ *
232+ * @return void
221233 */
222234 public function disableStrictVariables ()
223235 {
@@ -267,6 +279,8 @@ public function getCache($original = true)
267279 * @param CacheInterface|string|false $cache A Twig\Cache\CacheInterface implementation,
268280 * an absolute path to the compiled templates,
269281 * or false to disable cache
282+ *
283+ * @return void
270284 */
271285 public function setCache ($ cache )
272286 {
@@ -503,6 +517,9 @@ public function resolveTemplate($names): TemplateWrapper
503517 throw new LoaderError (\sprintf ('Unable to find one of the following templates: "%s". ' , implode ('", " ' , $ names )));
504518 }
505519
520+ /**
521+ * @return void
522+ */
506523 public function setLexer (Lexer $ lexer )
507524 {
508525 $ this ->lexer = $ lexer ;
@@ -520,6 +537,9 @@ public function tokenize(Source $source): TokenStream
520537 return $ this ->lexer ->tokenize ($ source );
521538 }
522539
540+ /**
541+ * @return void
542+ */
523543 public function setParser (Parser $ parser )
524544 {
525545 $ this ->parser = $ parser ;
@@ -539,6 +559,9 @@ public function parse(TokenStream $stream): ModuleNode
539559 return $ this ->parser ->parse ($ stream );
540560 }
541561
562+ /**
563+ * @return void
564+ */
542565 public function setCompiler (Compiler $ compiler )
543566 {
544567 $ this ->compiler = $ compiler ;
@@ -573,6 +596,9 @@ public function compileSource(Source $source): string
573596 }
574597 }
575598
599+ /**
600+ * @return void
601+ */
576602 public function setLoader (LoaderInterface $ loader )
577603 {
578604 $ this ->loader = $ loader ;
@@ -583,6 +609,9 @@ public function getLoader(): LoaderInterface
583609 return $ this ->loader ;
584610 }
585611
612+ /**
613+ * @return void
614+ */
586615 public function setCharset (string $ charset )
587616 {
588617 if ('UTF8 ' === $ charset = strtoupper ($ charset ?: '' )) {
@@ -603,6 +632,9 @@ public function hasExtension(string $class): bool
603632 return $ this ->extensionSet ->hasExtension ($ class );
604633 }
605634
635+ /**
636+ * @return void
637+ */
606638 public function addRuntimeLoader (RuntimeLoaderInterface $ loader )
607639 {
608640 $ this ->runtimeLoaders [] = $ loader ;
@@ -650,6 +682,9 @@ public function getRuntime(string $class)
650682 throw new RuntimeError (\sprintf ('Unable to load the "%s" runtime. ' , $ class ));
651683 }
652684
685+ /**
686+ * @return void
687+ */
653688 public function addExtension (ExtensionInterface $ extension )
654689 {
655690 $ this ->extensionSet ->addExtension ($ extension );
@@ -658,6 +693,8 @@ public function addExtension(ExtensionInterface $extension)
658693
659694 /**
660695 * @param ExtensionInterface[] $extensions An array of extensions
696+ *
697+ * @return void
661698 */
662699 public function setExtensions (array $ extensions )
663700 {
@@ -673,6 +710,9 @@ public function getExtensions(): array
673710 return $ this ->extensionSet ->getExtensions ();
674711 }
675712
713+ /**
714+ * @return void
715+ */
676716 public function addTokenParser (TokenParserInterface $ parser )
677717 {
678718 $ this ->extensionSet ->addTokenParser ($ parser );
@@ -701,6 +741,9 @@ public function registerUndefinedTokenParserCallback(callable $callable): void
701741 $ this ->extensionSet ->registerUndefinedTokenParserCallback ($ callable );
702742 }
703743
744+ /**
745+ * @return void
746+ */
704747 public function addNodeVisitor (NodeVisitorInterface $ visitor )
705748 {
706749 $ this ->extensionSet ->addNodeVisitor ($ visitor );
@@ -716,6 +759,9 @@ public function getNodeVisitors(): array
716759 return $ this ->extensionSet ->getNodeVisitors ();
717760 }
718761
762+ /**
763+ * @return void
764+ */
719765 public function addFilter (TwigFilter $ filter )
720766 {
721767 $ this ->extensionSet ->addFilter ($ filter );
@@ -750,6 +796,9 @@ public function getFilters(): array
750796 return $ this ->extensionSet ->getFilters ();
751797 }
752798
799+ /**
800+ * @return void
801+ */
753802 public function addTest (TwigTest $ test )
754803 {
755804 $ this ->extensionSet ->addTest ($ test );
@@ -773,6 +822,9 @@ public function getTest(string $name): ?TwigTest
773822 return $ this ->extensionSet ->getTest ($ name );
774823 }
775824
825+ /**
826+ * @return void
827+ */
776828 public function addFunction (TwigFunction $ function )
777829 {
778830 $ this ->extensionSet ->addFunction ($ function );
@@ -814,6 +866,8 @@ public function getFunctions(): array
814866 * but after, you can only update existing globals.
815867 *
816868 * @param mixed $value The global value
869+ *
870+ * @return void
817871 */
818872 public function addGlobal (string $ name , $ value )
819873 {
0 commit comments