Skip to content
Snippets Groups Projects
Commit 60b2d27a authored by dpi's avatar dpi
Browse files

Issue #3277361 by dpi, elber, alexpott: Limit where the PHP attributes can be used

parent 366cef4e
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute; ...@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute;
/** /**
* An alter. * An alter.
*/ */
#[\Attribute] #[\Attribute(\Attribute::TARGET_METHOD)]
class Alter { class Alter {
/** /**
......
...@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute; ...@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute;
/** /**
* A hook. * A hook.
*/ */
#[\Attribute] #[\Attribute(\Attribute::TARGET_METHOD)]
class Hook { class Hook {
/** /**
......
...@@ -14,7 +14,7 @@ namespace Drupal\hux\Attribute; ...@@ -14,7 +14,7 @@ namespace Drupal\hux\Attribute;
* *
* This does not extend the Hook attribute to simplify things. * This does not extend the Hook attribute to simplify things.
*/ */
#[\Attribute] #[\Attribute(\Attribute::TARGET_METHOD)]
final class ReplaceOriginalHook { final class ReplaceOriginalHook {
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment