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.
Load pay methods when PayU Payment is disabled and another method is active — on GitHub
GetPayMethods always loaded the configuration for payu_gateway, so with “PayU Payment” disabled and another PayU method enabled the request failed with PosId is empty and methods such as “PayU - Cards” disappeared from checkout. It now loads the configuration of the first enabled PayU method and returns an empty list without calling PayU when none is enabled.
Load the sandbox SDK in the CVV widget when sandbox mode is on — on GitHub
payu_gateway_card_cvv.js computed the SDK alias for the environment but listed the literal 'payuSDK' as the dependency, so the CVV widget always loaded the production SDK. The dependency list now uses the variable, as the other card components do.
Resolve refund notifications for increment ids with underscores — on GitHub
OrderByExtOrderIdResolver cut extOrderId at the first underscore, so an increment id with a prefix such as PL_ matched no order and the refund notification ended in HTTP 500. The resolver now takes everything before the last underscore, and UpdateRefundStatus throws a CommandException when no order is found.
Fix PHP 8.4 and 8.5 deprecations — on GitHub
On PHP 8.4 and 8.5 the module raised compile-time deprecations for non-canonical casts and implicitly nullable parameters. Five files now use the canonical cast or declare the parameters nullable, with no behaviour change.
Fix placeholder tokens in the he_IL translation — on GitHub
Twelve rows in he_IL.csv had placeholders that did not match the source string: reversed tokens such as 1%, spaced tokens such as % d, a dropped argument and wrong argument numbers. The storefront and admin showed literal tokens or the wrong value. The tokens now match the source strings.
Declare the exception previous parameter as explicitly nullable — on GitHub
QuoteNotFoundException and OrderNotFoundException declared \Throwable $previous = null, which PHP 8.4 deprecates as an implicit nullable and which becomes an error in PHP 9. The parameter is now typed ?\Throwable, with no change in behaviour.
Reject invalid CIDR prefix lengths in IP conditions — on GitHub
A conditional-allow IP entry with a prefix above 32, such as 10.0.0.1/33, made cidrMatch() throw ArithmeticError, so every REST request reaching the IP condition failed. Entries with a non-numeric or out-of-range prefix are now ignored and the remaining conditions still run.
Define the ACL resource used by the system configuration section — on GitHub
The graphql_query_limiter configuration section is protected by Yireo_CustomGraphQlQueryLimiter::config, but etc/acl.xml only declared ::index. The resource was missing from Roles > Role Resources, so the section could not be granted to an admin role that is not a super admin. The resource is now declared under the stores configuration node.
Delete by attribute_id and keep configurable super attributes in eav:attributes:remove-unused — on GitHub
eav:attributes:remove-unused deleted by attribute_code, which is unique only per entity type, so an unused product attribute could take a customer or category attribute with the same code down with it. It also treated attributes in catalog_product_super_attribute as unused. The command now deletes by attribute_id and skips attributes that configurable products use.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
RepaymentEmailObserversent the e-mail insidesales_model_service_quote_submit_successwithout atry/catch. A mail transport failure reachedQuoteManagement::submitQuote(), so checkout showed an error and the cart stayed active although the Magento and PayU orders already existed. The observer now catches\Throwableand logs it.