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.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Fall back to auto font size when the configured value is empty — on GitHub
An empty font size field produced font-size: px in the template and px in the GraphQL font_size field. The value was cast to a string before the null check, so the auto fallback could never run. It now compares the trimmed value with an empty string.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Read Postcode.nl API credentials at store scope — on GitHub
The API key and secret are editable at website and store scope, but PostcodeManagement read them without a scope, so per-website values were ignored and the default was always sent to Postcode.nl. They are now read with ScopeInterface::SCOPE_STORE.
Fix undeclared objectManager property in ConflictList block — on GitHub
The block declared $objectmanager but its constructor assigned $this->objectManager, creating a dynamic property that is deprecated since PHP 8.2. In developer mode Magento turns that into an exception and the admin page failed to render. The declaration is renamed to match.
Require PHP 8.3 or newer and reject repeated-digit CNPJ — on GitHub
The module uses typed class constants but declared no PHP requirement, so Composer installed it on PHP versions where the files do not parse. A php constraint is added. The CNPJ validator also accepted 00000000000000, and now rejects numbers made of one repeated digit as the CPF validator already did.
Add Magento compatibility checks with GitHub Actions — on GitHub
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard, setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.
Send whole cents from formatPrice instead of a float — on GitHub
Config::formatPrice() returned round($amount, 2) * 100 as a float, so requests carried amounts such as 114.99999999999999 for 1.15. The method now rounds to an integer number of cents and declares an int return type.
Avoid repeated database loads for grids with default filters — on GitHub
Every record and count read appended the default filter groups to the same search criteria, which changed the criteria hash and fetched the grid data again, including the count read for pagination. The incoming criteria are now cloned before default bindings are applied and prefetch events are dispatched, so repeated reads share one result.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
One GitHub Actions workflow checks every pull request and push: Composer validation, PHP lint, the Magento coding standard,
setup:di:compile, static content deployment, the unit tests and PHPStan, on the latest patch of each supported Magento Open Source release at its lowest and highest PHP version. The release list refreshes on every run, so a new Magento or PHP version is tested without a workflow change.