mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
fixed typo in the doc
This commit is contained in:
+1
-1
@@ -216,7 +216,7 @@ When a function (or a filter) is not defined, Twig defaults to throw a
|
||||
``Twig_Error_Syntax`` exception. However, it can also call a `callback`_ (any
|
||||
valid PHP callable) which should return a function (or a filter).
|
||||
|
||||
For filters, register callbacks with ``registerUndefinedFunctionCallback()``.
|
||||
For filters, register callbacks with ``registerUndefinedFilterCallback()``.
|
||||
For functions, use ``registerUndefinedFunctionCallback()``::
|
||||
|
||||
// auto-register all native PHP functions as Twig functions
|
||||
|
||||
Reference in New Issue
Block a user