Skip to content

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

Open
jordikroon wants to merge 2 commits intophp:masterfrom
jordikroon:doc/class-alias
Open

Add reserved words restrictions for class-alias in PHP 8.5#5059
jordikroon wants to merge 2 commits intophp:masterfrom
jordikroon:doc/class-alias

Conversation

@jordikroon
Copy link
Contributor

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.
Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
@jordikroon
Copy link
Contributor Author

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

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