Closed (fixed)
Project:
Entity Print
Version:
8.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2022 at 18:43 UTC
Updated:
25 Jan 2023 at 01:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanHmm we might need a new branch for d10 support then
Comment #3
larowlanIn D9 the event is passed a RequestExceptionEvent.
In D10 this becomes an ExceptionEvent.
We need to find a way I can typehint this without using union types so that the module is compatible with D9 and D10.
If I use RequestException event it is a deprecation in D9 and a fatal in D10. If I use ExceptionEvent its a type error in D9 as the passed argument is the narrower RequestExceptionEvent
I can use a union type, but that'd mean dropping PHP7 support, which given the audience of this module feels disruptive. However those folks can stay on older versions I guess.
Alternatively I can do a new major version with the breaking change, ie D10 only - but that makes it harder for people to update to D10.
Comment #5
larowlanComment #6
larowlanComment #8
larowlan