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

Honor return type for __set() #2630

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

phansys
Copy link
Collaborator

@phansys phansys commented Jun 17, 2023

Return type for __set() is defined as void: https://www.php.net/manual/en/language.oop5.overloading.php#object.set.
This change fixes the findings detected by PHPStan, those that are currently breaking the CI pipeline.
Although it can be technically considered a BC break, I think this is a minor change, as there is no way to get the return value when this method is called.

@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2023

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.02 ⚠️

Comparison is base (55e9499) 79.27% compared to head (ef25225) 79.26%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2630      +/-   ##
==========================================
- Coverage   79.27%   79.26%   -0.02%     
==========================================
  Files         161      161              
  Lines        8400     8400              
==========================================
- Hits         6659     6658       -1     
- Misses       1741     1742       +1     
Impacted Files Coverage Δ
src/Translator/TranslationProxy.php 88.33% <33.33%> (-1.67%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@phansys phansys marked this pull request as ready for review June 17, 2023 22:58
@phansys phansys merged commit 99075b6 into doctrine-extensions:main Jun 19, 2023
@phansys phansys deleted the translation_proxy_set branch June 19, 2023 12:08
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.

2 participants