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 deprecation layer of Doctrine\ORM\ORMException #11430

Merged
merged 2 commits into from Apr 30, 2024

Conversation

W0rma
Copy link
Contributor

@W0rma W0rma commented Apr 29, 2024

Fixes #11244

This PR starts using the new exception classes introduced by #8692 in Doctrine\ORM\ORMException.

This way it is ensured that the thrown exception is an instance of Doctrine\ORM\ORMException (= deprecated) and Doctrine\ORM\Exception\ORMException (= not deprecated).

@W0rma W0rma changed the title Fix deprecation layer Fix deprecation layer of Doctrine\ORM\ORMException Apr 29, 2024
@W0rma W0rma force-pushed the fix-deprecation-layer-orm-exception branch from fdaee30 to 20b0912 Compare April 29, 2024 12:46
@W0rma W0rma force-pushed the fix-deprecation-layer-orm-exception branch 2 times, most recently from 6458c46 to d0e5966 Compare April 29, 2024 12:58
@W0rma W0rma marked this pull request as ready for review April 29, 2024 13:00
@W0rma W0rma force-pushed the fix-deprecation-layer-orm-exception branch from d0e5966 to ad5c8e4 Compare April 30, 2024 06:35
@W0rma
Copy link
Contributor Author

W0rma commented Apr 30, 2024

This PR also fixes PHP 7.1 compatibility of the test added in #11428 - this was necessary to make the CI green.

Please let me know if you prefer a dedicated PR for this change.

@greg0ire greg0ire added the Bug label Apr 30, 2024
@greg0ire greg0ire merged commit 94986af into doctrine:2.19.x Apr 30, 2024
56 checks passed
@greg0ire
Copy link
Member

Thanks @W0rma ! Weird that there were no checks in #11428… as for #8692, I guess I must have missed these occurrences because of the new self syntax.

@greg0ire greg0ire added this to the 2.19.5 milestone Apr 30, 2024
@W0rma W0rma deleted the fix-deprecation-layer-orm-exception branch April 30, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants