Add redirect for reserved keywords #804
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When browsing to https://php.net/yield recently, I was surprised to see a message saying that "yield doesn't exist". The
yield
keyword does exist, but doesn't have a dedicated page so hasn't been indexed. This pull request adds a special case for this keyword so that it can be found by users.I've also looked into how to get all keywords declared automatically. The best I can come up with today (without significant changes to how the search / look-up process works) is over on the 'systems' repository: php/systems#19
Update: I've now gone through all the reserved words listed on https://php.net/reserved and added these to this pull request.