| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
Attributes are classes, and if you are in a namespace, remember to fully qualify the namespace in the attribute or add a use statement.
```
namespace MyProject;
/* This will not work */
#[AllowDynamicProperties]
/* This will work */
#[\AllowDynamicProperties]
```
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.84.18 (proxied: 173.209.172.152)
----
Manual Page -- https://php.net/manual/en/language.attributes.overview.php
Edit -- https://main.php.net/note/edit/130301
Del: integrated -- https://main.php.net/note/delete/130301/integrated
Del: useless -- https://main.php.net/note/delete/130301/useless
Del: bad code -- https://main.php.net/note/delete/130301/bad+code
Del: spam -- https://main.php.net/note/delete/130301/spam
Del: non-english -- https://main.php.net/note/delete/130301/non-english
Del: in docs -- https://main.php.net/note/delete/130301/in+docs
Del: other reasons-- https://main.php.net/note/delete/130301
Reject -- https://main.php.net/note/reject/130301
Search -- https://main.php.net/manage/user-notes.php