Skip to content

Add ReflectionProperty::isDynamic() #4292

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

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

alexandre-daubois
Copy link
Contributor

Part of #3872

Comment on lines 66 to 72
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>ReflectionProperty::getValue</methodname></member>
</simplelist>
</para>
</refsect1>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>ReflectionProperty::getValue</methodname></member>
</simplelist>
</para>
</refsect1>
&reftitle.seealso;
<simplelist>
<member><methodname>ReflectionProperty::getValue</methodname></member>
</simplelist>
</refsect1>

Comment on lines +41 to +45
class Foo {
public $bar;
}
Copy link
Member

Choose a reason for hiding this comment

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

You need to add the dynamic property attribute to the class, otherwise a deprecation notice would be in the output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, also added to isDefault() then

Comment on lines +16 to +17
Checks whether the property was declared at run-time, or whether the
property was declared at compile-time.
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about this wording, maybe something like:

Checks whetehr the property was declared at run-time,
or if the property is declared in a class at compile time.

? But I still not amazed by my wording.

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 actually used the same wording as isDefault(), if it matters.

@Girgias Girgias merged commit 969db61 into php:master Dec 21, 2024
2 checks passed
@TimWolla
Copy link
Member

TimWolla commented Feb 9, 2025

FYI: This PR forgot to adjust versions.xml. I've fixed that in f8fc16d.

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