diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php
index 96986285d6a..a689e1163a4 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php
@@ -9,7 +9,7 @@
 /**
  * Defines a custom PluginExample attribute.
  */
-#[Attribute(Attribute::TARGET_CLASS)]
+#[\Attribute(\Attribute::TARGET_CLASS)]
 class PluginExample extends Plugin {
 
   /**
