Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

property-hooks.xml Replace 'all' with 'non-static', as not all + typos #4116

Merged
merged 7 commits into from
Nov 24, 2024

Conversation

mmalferov
Copy link
Member

The word all seems to deceive the reader a little :)

How about adding some specifics about which properties are allowed to declare hooks for?

The word `all` seems to deceive the reader a little :)

How about adding some specifics about which properties are allowed to declare hooks for?
@Girgias Girgias requested a review from Crell November 21, 2024 11:21
@mmalferov mmalferov changed the title Update property-hooks.xml Replace 'all' with 'non-static', as not all property-hooks.xml Replace 'all' with 'non-static', as not all + typos Nov 22, 2024
@@ -25,7 +25,7 @@
</listitem>
</orderedlist>
<simpara>
There are two hooks available on all properties: <literal>get</literal> and <literal>set</literal>.
There are two hooks available on typed or untyped non-static properties: <literal>get</literal> and <literal>set</literal>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on clarifying non-static. But "typed or untyped" reduces to all, so is redundant.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By saying "typed or untyped", I meant that hooks can work with both typed and untyped properties, or rather, that it is not necessary to type a property ;) As opposed to, for example, read-only properties that work only with typed properties

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have indicated the availability of hooks for both typed and untyped properties in a separate sentence. It seems that now it doesn't look redundant and informs the reader that hooks will work with both typed properties and untyped ones.

@Crell
Copy link
Contributor

Crell commented Nov 22, 2024

Looks good aside from those comments, and the need to rebase. Thanks.

@Crell
Copy link
Contributor

Crell commented Nov 24, 2024

Looks good now. Thanks!

@Crell Crell merged commit b34210e into php:master Nov 24, 2024
2 checks passed
@mmalferov mmalferov deleted the patch-539413 branch January 20, 2025 17:23
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