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

Add mention of is_a() and instanceof in class_implements() and class_parents() pages #2697

Merged

Conversation

alexandre-daubois
Copy link
Contributor

Fix #1606

@@ -99,12 +99,24 @@ Array
</para>
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
&note.no-remote;
Copy link
Member

Choose a reason for hiding this comment

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

Why this entity?
Doesn't seem related at all and something from a copy/paste.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it 👍

Comment on lines 107 to 108
To check that an object implements an interface, you should either use &instanceof;
or the <function>is_a</function> function.
Copy link
Member

Choose a reason for hiding this comment

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

Personalisation:

Suggested change
To check that an object implements an interface, you should either use &instanceof;
or the <function>is_a</function> function.
To check that an object implements an interface, &instanceof;
or the <function>is_a</function> function should be used instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>class_parents</function></member>
<member><function>get_declared_interfaces</function></member>
<member><function>is_a</function></member>
Copy link
Member

Choose a reason for hiding this comment

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

Instanceof should also be mentionned here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added 🙂

@Girgias Girgias merged commit 60af8c2 into php:master Aug 22, 2023
2 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.

class_implements/parents should note that instanceof and is_a are available
2 participants