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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute;
/**
 * An alter.
 */
#[\Attribute]
#[\Attribute(\Attribute::TARGET_METHOD)]
class Alter {

  /**
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ namespace Drupal\hux\Attribute;
/**
 * A hook.
 */
#[\Attribute]
#[\Attribute(\Attribute::TARGET_METHOD)]
class Hook {

  /**
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ namespace Drupal\hux\Attribute;
 *
 * This does not extend the Hook attribute to simplify things.
 */
#[\Attribute]
#[\Attribute(\Attribute::TARGET_METHOD)]
final class ReplaceOriginalHook {

  /**