Since PHP 8.1, passing a null string to ltrim(string $string) is deprecated.
Thus we make sure that $request->getStr('email') does not return null as default.
Closes T15376
Differential D25210
Fix PHP 8.1 "ltrim(null)" exception which blocks adding additional user email address aklapper on May 9 2023, 21:04. Authored by
Details Since PHP 8.1, passing a null string to ltrim(string $string) is deprecated. Thus we make sure that $request->getStr('email') does not return null as default. Closes T15376 Applied this change, afterwards repeated the steps to add a new email address on /settings/panel/email/. This time, it's possible to close the "Verification Email Sent" and the page /settings/panel/email/ renders and lists the new email address.
Diff Detail
Event TimelineComment Actions Thanks Please see my inline comment, probably just adding 3 characters fixes, and that would be probably the approach from O1 I accept as behalf of myself in the meanwhile, thanks
Comment Actions Thanks again :) I tested this locally following the test plan without any nuclear implosion. Green light from me |