Skip to content

Improve 8.6 release page descriptions and examples - #54

Merged
saundefined merged 3 commits into
saundefined:php86from
theodorejb:php86
Nov 17, 2026
Merged

saundefined merged 3 commits into
saundefined:php86from
theodorejb:php86

Conversation

@theodorejb

Copy link
Copy Markdown
  • Updated Readonly property defaults descriptions to better explain the feature.
  • Shortened the Partial Function Application example so the relevant code is more prominent and doesn't require horizontal scrolling on mobile.
  • Replaced the SortDirection description and example to highlight it's benefits.

Explain why the feature is useful (implementing get-only interface properties with fixed values without constructor boilerplate) and note that the default counts as the property's initialization.
Declare the versions array on a single line and use a shorter variable name so the relevant code is more prominent.
Explain how the enum benefits users by replacing the many incompatible ways that libraries previously represented sort direction, rather than focusing on its lack of behavior. Use a realistic orderBy() example that shows how an invalid integer is accepted by the signature and then fails inside the method, whereas the enum parameter rejects it immediately with a TypeError.
@saundefined
saundefined merged commit 51ea239 into saundefined:php86 Nov 17, 2026
4 checks passed
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