Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hux-3363433
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
hux-3363433
Commits
60b2d27a
Commit
60b2d27a
authored
2 years ago
by
dpi
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3277361
by dpi, elber, alexpott: Limit where the PHP attributes can be used
parent
366cef4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Attribute/Alter.php
+1
-1
1 addition, 1 deletion
src/Attribute/Alter.php
src/Attribute/Hook.php
+1
-1
1 addition, 1 deletion
src/Attribute/Hook.php
src/Attribute/ReplaceOriginalHook.php
+1
-1
1 addition, 1 deletion
src/Attribute/ReplaceOriginalHook.php
with
3 additions
and
3 deletions
src/Attribute/Alter.php
+
1
−
1
View file @
60b2d27a
...
@@ -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
{
/**
/**
...
...
This diff is collapsed.
Click to expand it.
src/Attribute/Hook.php
+
1
−
1
View file @
60b2d27a
...
@@ -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
{
/**
/**
...
...
This diff is collapsed.
Click to expand it.
src/Attribute/ReplaceOriginalHook.php
+
1
−
1
View file @
60b2d27a
...
@@ -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
{
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment