mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Doctrine 2: Deprecation annotation gives a broken suggestion of what to change #7315
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rrehbein on GitHub (Feb 9, 2024).
Bug Report
Summary
Following the suggestion in the deprecation notice about which class name to use for 'catch' does not actually work.
Current behavior
Changing catches to
Doctrine\ORM\Exception\ORMExceptionper the deprecation notice causes the catches to be ignored.How to reproduce
Expected behavior
output:
The suggested catch caughtActual behavior