Skip to content

ForbiddenNames: add parent + self to "other" reserved names#1940

Merged
wimg merged 1 commit intodevelopfrom
feature/forbiddennames-add-parent-self
Oct 27, 2025
Merged

ForbiddenNames: add parent + self to "other" reserved names#1940
wimg merged 1 commit intodevelopfrom
feature/forbiddennames-add-parent-self

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 25, 2025

Looks like these have been forbidden for use as OO construct names since PHP 5.0, but are still allowed as function/constant names, making these "other" reserved names.

Verified via 3v4l.
Examples:
https://3v4l.org/P6c7v
https://3v4l.org/Ib9Qk

Also see: php/doc-en#4955

Looks like these have been forbidden for use as OO construct names since PHP 5.0, but are still allowed as function/constant names, making these "other" reserved names.

Verified via 3v4l.
Examples:
https://3v4l.org/P6c7v
https://3v4l.org/Ib9Qk

Also see: php/doc-en 4955
@jrfnl jrfnl added this to the 10.0.0-alpha2 milestone Oct 25, 2025
@jrfnl jrfnl requested a review from wimg October 25, 2025 22:57
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Oct 25, 2025
@wimg wimg merged commit 14e35c0 into develop Oct 27, 2025
76 checks passed
@wimg wimg deleted the feature/forbiddennames-add-parent-self branch October 27, 2025 20:22
@github-actions github-actions bot removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Oct 27, 2025
@jrfnl jrfnl added the PHP: 5.0 label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants