Blog

Viewing entries posted in 2021

Counting characters in MySQL

For some data integrity checks, I needed to know if all SKUs stored in a MySQL database table have been properly imported. That implied making sure each SKU contained a string with 2 underscores as a separator. Knowing that PHP has functions like substr_count() or count_chars(), I was surprised that nothing similar exists in MySQL.


mehr lesen...


Eintrag von Stephan Hochdörfer am 18.01.2022

Magento Password Migration Problem

Recently, we took over a Magento 2 project where data was migrated from an older Magento 1 instance. The merchant complained that after the migration some customers are not able to log in anymore. Even a password reset did not work.


mehr lesen...


Eintrag von Stephan Hochdörfer am 14.01.2022

PHPStorm, Magento & WSL2 Performance

Whilst I migrated from Linux to Windows and WSL 2 more than a year ago, I had a plan to install any development-related tools like Git or PHPStorm in WSL2. PHPStorm worked quite ok in WSL 2 except that filesystem changes (e.g. adding or removing files) made directly in WSL 2 were not properly recognized by PHPStorm. Even triggering a manual refresh from the disk did not always work. That made me install PHPStorm on Windows and open PHP projects via the WSL 2 integration of PHPStorm. That works better but still has its issues with larger projects.


mehr lesen...


Eintrag von Stephan Hochdörfer am 13.01.2022

New phpstan-magento release

Besides supporting PHPStan version 1.3, the latest phpstan-magento extension release 0.15.0 adds support for extension attributes for both Magento modules and Magento applications.
Extension Attributes allow developers to “extend” existing API Data interfaces by defining additional attributes in an XML-based configuration. The phpstan-magento extension parses these XML definitions and generates the respective interfaces so that PHPStan can analyze these interfaces.


mehr lesen...


Eintrag von Stephan Hochdörfer am 10.01.2022

Diese Webseite verwendet Cookies, um die Bedienfreundlichkeit zu erhöhen. Mit der Nutzung unserer Webseite wird das Einverständnis erklärt, dass wir Cookies verwenden. Weitere Informationen.