Skip to content

Document ReflectionConstant::getAttributes() (PHP 8.5)#5675

Merged
jordikroon merged 4 commits into
php:masterfrom
lacatoire:feat/reflection-constant-getattributes-8.5
Jul 16, 2026
Merged

Document ReflectionConstant::getAttributes() (PHP 8.5)#5675
jordikroon merged 4 commits into
php:masterfrom
lacatoire:feat/reflection-constant-getattributes-8.5

Conversation

@lacatoire

Copy link
Copy Markdown
Member

PHP 8.5 adds ReflectionConstant::getAttributes() (RFC: attributes on constants), which had no documentation. Adds the method page.

Verified against php-src: ext/reflection/php_reflection.stub.php declares getAttributes(?string $name = null, int $flags = 0): array, matching the documented signature.

Comment thread reference/reflection/reflectionconstant/getattributes.xml Outdated
Comment thread reference/reflection/reflectionconstant/getattributes.xml
@jordikroon
jordikroon merged commit 543f982 into php:master Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants