The second patch fixes the imports for StringTranslationTrait.
I think the issue has already been solved in the 3.x Branch with the given second problem solution.
This failed because I created the patch based on the tag "3.0.0-alpha2". I realized that the problem is already fixed in 3.x, because of the addition of "?? []". This will take the empty array on return in case of null in the left statement. The empty array will remove the null there in any case.
Here the patch, but i think a new release from "3.x" with "?? []" ist still possible.
PLK → created an issue.
This patch works for me without any problems. Can we close this issue?
The fix in the dev Branch "10.0.x" fixed this issue for me.
But the null checks and the fix is not founded in the 10.0.2 release.
Would you please release a new version?
The patch 3387978-01.patch
could solve the issue.