Problem/Motivation
PHP Attributes support target specification - see https://www.php.net/manual/en/language.attributes.classes.php
Should attributes supplied by this module be targeted to Attribute::TARGET_METHOD - I think that that makes sense seeing how the attributes are used.
Proposed resolution
Change #[Attribute] to #[Attribute(Attribute::TARGET_METHOD)]
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3277361-8.patch | 1.17 KB | elber |
| #3 | 3277361-3.patch | 1.17 KB | elber |
Issue fork hux-3277361
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
elberComment #3
elberComment #5
dpiSounds good, thanks @alexpott
@elber there's errant line removals in the patch. And I'm guessing its broken because you should be using
\Attribute(full qualified namespaec) rather thanAttributeComment #6
elberok, I will work again.
Comment #7
dpi*Attribute, not Exception. Long day.
Comment #8
elberComment #10
larowlanLooks good to merge on green ❤️
Comment #11
dpiConverted to MR with doGit.
Tests now passing with whitespace revert + namespace fix.
Comment #12
dpiErgh why does the title change like this
Comment #13
dpiComment #15
dpiMerged! Thanks!