Skip to content

Commit 5d9dc9b

Browse files
committed
docs: fix incorrect description
Undefined values can not be used in Parser.
1 parent a28caae commit 5d9dc9b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

user_guide_src/source/outgoing/view_parser.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ date format (Y-m-d) A PHP **date**-compatible formatting string.
371371
date_modify value to add A **strtotime** compatible string to modify the date, { v|date_modify(+1 day) }
372372
/ subtract like ``+5 day`` or ``-1 week``.
373373

374-
default default value Displays the default value if the variable is empty or { v|default(just in case) }
375-
undefined.
374+
default default value Displays the default value if the variable is `empty()`_. { v|default(just in case) }
376375

377376
esc html, attr, Specifies the context to escape the data. { v|esc(attr) }
378377
css, js
@@ -419,6 +418,8 @@ title Displays a "title case" version of the string
419418
upper Displays the string in all uppercase. { v|upper }
420419
================ ================= =========================================================== ======================================
421420

421+
.. _empty(): https://www.php.net/manual/en/function.empty.php
422+
422423
See `PHP's NumberFormatter <https://www.php.net/manual/en/numberformatter.create.php>`_ for details relevant to the
423424
"local_number" filter.
424425

0 commit comments

Comments
 (0)