Skip to content

[Sync-En] Add namespace caveats to define(), defined(), and constant() (#5256) - #1228

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1214-namespace-caveats-define-defined-constant
Open

[Sync-En] Add namespace caveats to define(), defined(), and constant() (#5256)#1228
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1214-namespace-caveats-define-defined-constant

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Fixes #1214

Sync with EN commit 5dc2deaf9f59287a5a5e327b7de538a9ff3fddf2.

Add notes to define(), defined(), and constant() explaining that these functions take the name as an ordinary string and never resolve it against the current namespace. Documents how to use them with namespaced constants and the differences between them (define() does not strip a leading namespace separator).

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.

[Sync EN] Add namespace caveats to define(), defined(), and constant() (#5256)

1 participant