We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 633ccfc commit 79f76a5Copy full SHA for 79f76a5
doc/advanced.rst
@@ -821,10 +821,10 @@ Using PHP Attributes to define Extensions
821
822
The attribute classes were added in Twig 3.21.
823
824
-You can use the attributes ``#[AsTwigFilter]``, ``#[AsTwigFunction]``, and
825
-``#[AsTwigTest]`` on any method of any class to define filters, functions, and tests.
+You can add the ``#[AsTwigFilter]``, ``#[AsTwigFunction]``, and
+``#[AsTwigTest]`` attributes to public methods of any class to define filters, functions, and tests.
826
827
-Create a class using this attributes::
+Create a class using these attributes::
828
829
use Twig\Attribute\AsTwigFilter;
830
use Twig\Attribute\AsTwigFunction;
0 commit comments