From fb3ca3d6063827833ae792b57948cc32d3348698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Sun, 10 Dec 2023 22:44:14 +0100 Subject: [PATCH] Mark attributes as final --- src/Attribute/AsTwigExtension.php | 2 +- src/Attribute/AsTwigFilter.php | 2 +- src/Attribute/AsTwigFunction.php | 2 +- src/Attribute/AsTwigTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Attribute/AsTwigExtension.php b/src/Attribute/AsTwigExtension.php index bdbbd44f159..40d48915890 100644 --- a/src/Attribute/AsTwigExtension.php +++ b/src/Attribute/AsTwigExtension.php @@ -15,6 +15,6 @@ * Identifies a class that uses PHP attributes to define filters, functions, or tests. */ #[\Attribute(\Attribute::TARGET_CLASS)] -class AsTwigExtension +final class AsTwigExtension { } diff --git a/src/Attribute/AsTwigFilter.php b/src/Attribute/AsTwigFilter.php index 956228c504f..bfa101aaf32 100644 --- a/src/Attribute/AsTwigFilter.php +++ b/src/Attribute/AsTwigFilter.php @@ -27,7 +27,7 @@ * @see TwigFilter */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] -class AsTwigFilter +final class AsTwigFilter { public function __construct( /** diff --git a/src/Attribute/AsTwigFunction.php b/src/Attribute/AsTwigFunction.php index 539cf08bce4..fbbf040b012 100644 --- a/src/Attribute/AsTwigFunction.php +++ b/src/Attribute/AsTwigFunction.php @@ -27,7 +27,7 @@ * @see TwigFunction */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] -class AsTwigFunction +final class AsTwigFunction { public function __construct( /** diff --git a/src/Attribute/AsTwigTest.php b/src/Attribute/AsTwigTest.php index ee4d8c6511e..17f91cfd0af 100644 --- a/src/Attribute/AsTwigTest.php +++ b/src/Attribute/AsTwigTest.php @@ -26,7 +26,7 @@ * @see TwigTest */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] -class AsTwigTest +final class AsTwigTest { public function __construct( /**