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

Fix some tests that were missed in #10431 #10464

Merged
merged 1 commit into from
Jan 26, 2023
Merged

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Jan 26, 2023

In #10431, some invalid inheritance declarations in our test base were fixed. However, the change missed to update XML, PHP and static PHP mapping configurations as well.

Apparently, this did not raise any flags because the misconfiguration only caused a deprecation notice in 2.15.x. Running the tests against 3.0 (where the misconfiguration will be an error) unveiled the mistake.

Reviewers: Compare to https://github.com/doctrine/orm/pull/10431/files#diff-3acd7a05f18efb0e3cb41d042f0699ff8f97ce91c3964f9ee588cb876304449b, this PR here does the same change for the other mapping types.

In doctrine#10431, some invalid inheritance declarations in our test base were fixed. However, the change missed to update XML, PHP and static PHP mapping configurations as well.

Apparently, this did not raise any flags because the misconfiguration only caused a deprecation notice in 2.15.x. Running the tests against 3.0 (where the misconfiguration will be an error) unveiled the mistake.
@mpdude
Copy link
Contributor Author

mpdude commented Jan 26, 2023

Should deprecation messages triggered by the test base be an error, or how could I have spotted this on 2.15 already?

@derrabus derrabus added this to the 2.15.0 milestone Jan 26, 2023
@derrabus
Copy link
Member

Should deprecation messages triggered by the test base be an error, or how could I have spotted this on 2.15 already?

This is currently not the case. Maybe it should.

@derrabus derrabus merged commit 843bff4 into doctrine:2.15.x Jan 26, 2023
@mpdude mpdude deleted the fixup-10431 branch January 26, 2023 18:17
derrabus added a commit to derrabus/orm that referenced this pull request Jan 27, 2023
* 2.15.x:
  Psalm 5.6.0, PHPStan 1.9.14 (doctrine#10468)
  Fix some tests that were missed in doctrine#10431 (doctrine#10464)
  Remove commented-out code sections (doctrine#10465)
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