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

Backport tests for strict return types #463

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 18, 2023

In order to add return types in #459, some tests needs to be updated.

I have a partial understanding of how ReferenceRepository works, with the metadata system.

The setReference method calls getRealClass, which required $metadata->getName(). Which is casted to an empty string when the mock isn't defined for this method call.

@derrabus derrabus added this to the 1.7.1 milestone Dec 19, 2023
@derrabus derrabus merged commit 5c2a3d8 into doctrine:1.7.x Dec 19, 2023
13 checks passed
@GromNaN GromNaN deleted the types-test branch December 19, 2023 23:17
derrabus added a commit that referenced this pull request Mar 8, 2024
* 1.7.x:
  Add tests (#465)
  Backport tests for strict return types (#463)
derrabus added a commit to derrabus/data-fixtures that referenced this pull request Mar 8, 2024
* 1.8.x:
  Adjust PHPStan settings for ORM 3 (doctrine#467)
  Add tests (doctrine#465)
  Backport tests for strict return types (doctrine#463)
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.

3 participants