Skip to content

Commit 79f76a5

Browse files
GromNaNkbond
andauthored
Doc review from Kevin
Co-authored-by: Kevin Bond <[email protected]>
1 parent 633ccfc commit 79f76a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/advanced.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,10 @@ Using PHP Attributes to define Extensions
821821

822822
The attribute classes were added in Twig 3.21.
823823

824-
You can use the attributes ``#[AsTwigFilter]``, ``#[AsTwigFunction]``, and
825-
``#[AsTwigTest]`` on any method of any class to define filters, functions, and tests.
824+
You can add the ``#[AsTwigFilter]``, ``#[AsTwigFunction]``, and
825+
``#[AsTwigTest]`` attributes to public methods of any class to define filters, functions, and tests.
826826

827-
Create a class using this attributes::
827+
Create a class using these attributes::
828828

829829
use Twig\Attribute\AsTwigFilter;
830830
use Twig\Attribute\AsTwigFunction;

0 commit comments

Comments
 (0)