Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #19342 Added class existence check if is_subclass_of() fails in c…
…ompiler passes (SCIF) This PR was merged into the 2.8 branch. Discussion ---------- Added class existence check if is_subclass_of() fails in compiler passes | Q | A | ------------- | --- | Branch? | 2.8-3.1 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - If you create an event subscriber and make typo in file name it will cause next error: ``` [InvalidArgumentException] Service "event.notification_subscriber" must implement interface "Symfony\Component\EventDispatcher\EventSubscriberInterface". ``` That's because of `is_subclass_of()` fails on class absentee. I made error message more clear. Commits ------- 72db6e7 Added class existence check if is_subclass_of() fails in compiler passes
- Loading branch information