Skip to content

Add reserved words restrictions for class-alias in PHP 8.5#5059

Merged
kamil-tekiela merged 2 commits into
php:masterfrom
jordikroon:doc/class-alias
Apr 21, 2026
Merged

Add reserved words restrictions for class-alias in PHP 8.5#5059
kamil-tekiela merged 2 commits into
php:masterfrom
jordikroon:doc/class-alias

Conversation

@jordikroon
Copy link
Copy Markdown
Member

Documentation updated for new reserved class names

  • Update reserved words documentation to include array and callable as reserved words as of PHP 8.5.
  • Clarify in class_alias() function that aliases cannot use reserved words, with link to reserved words reference.

Ref: #4886

@jordikroon jordikroon force-pushed the doc/class-alias branch 3 times, most recently from 91c78a3 to 3351464 Compare December 25, 2025 23:45
Update reserved words documentation to include array and callable as reserved
words as of PHP 8.5. Clarify in class_alias() function that aliases cannot
use reserved words, with link to reserved words reference.
Comment thread reference/classobj/functions/class-alias.xml Outdated
Comment thread reference/classobj/functions/class-alias.xml Outdated
Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
@jordikroon
Copy link
Copy Markdown
Member Author

Haven't had the chance to get back to this. Thank you for pointing out para was used. It now is simpara.

@kamil-tekiela kamil-tekiela merged commit ff9181e into php:master Apr 21, 2026
2 checks passed
jordikroon added a commit to Narkunan/doc-en that referenced this pull request May 17, 2026
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.

3 participants