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

Address deprecation of ReflectionType::getClass() #36891

Merged
merged 1 commit into from May 23, 2020

Conversation

derrabus
Copy link
Member

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #36872
License MIT
Doc PR N/A

Calling ReflectionType::getClass() will trigger a deprecation warning on php 8. This PR switches to getType() if available.

@derrabus
Copy link
Member Author

What should I do about the fabbot failures? They're unrelated to my changes. Submit a separate PR to fix them or ignore them?

@nicolas-grekas
Copy link
Member

They are false positives. We could rewrite the code a bit to prevent fabbot from generating these patches (using concat I guess).

In this PR or another as you wish.

@derrabus derrabus force-pushed the bugfix/get-class-deprecation branch from 32443e4 to 53b1677 Compare May 21, 2020 13:05
@derrabus
Copy link
Member Author

Test failures on php 5.5 have been resolved. Travis is green now.

@nicolas-grekas
Copy link
Member

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit 410b621 into symfony:3.4 May 23, 2020
@derrabus derrabus deleted the bugfix/get-class-deprecation branch May 23, 2020 07:40
nicolas-grekas added a commit that referenced this pull request May 23, 2020
…eflectionParameter::getClass() (derrabus)

This PR was merged into the 4.4 branch.

Discussion
----------

[OptionsResolver][Serializer] Remove calls to deprecated ReflectionParameter::getClass()

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #36872
| License       | MIT
| Doc PR        | N/A

Following #36891, this PR removes the remaining calls to `ReflectionParameter::getClass()` from the 4.4 branch.

Commits
-------

1575d85 Remove calls to deprecated ReflectionParameter::getClass().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants