Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Accept option label 0 in Select and Multiselect validation — on GitHub
EAV Select and Multiselect validation treated the option label as a boolean, and "0" is falsy in PHP, so a valid option labelled 0 failed with “does not contain option with Id”. Only false and null now count as a missing option. Backport of magento/magento2#40827.
Regenerate the admin session ID before storing the user on login — on GitHub
Auth::login() stored the authenticated user in the admin session before processLogin() called regenerateId(). PHP writes the current session data under the old ID before switching, so the pre-login session ID stayed authenticated after login. processLogin() now takes the user out of the session before regenerating the ID and sets it again afterwards.
Expand the Varnish tracking parameter strip list — on GitHub
Marketing and tracking query parameters do not change page content, but each value created its own full page cache entry, which lowered the hit ratio. This backport of magento/magento2#40656 adds more parameters to the vcl_recv strip list in the varnish4.vcl to varnish7.vcl templates and to Identifier::getMarketingParameterPatterns(), so the PHP cache strips the same list.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
PHP redacts a
#[\SensitiveParameter]argument only in the frame of the method that declares it. Magento calls plugged classes through generated interceptors whose signatures drop parameter attributes, so the secret still appeared in stack traces. The code generators now carry the attribute over to interceptors, proxies and compiled interceptors, and the interception plumbing marks its argument carriers as sensitive. Generated code for parameters without the attribute is byte-for-byte unchanged.