PHPUnit Code Sprint: Issue discussions

assertDirectoryExists and assertDirectoryDoesNotExist failed #5996 Did you know php has a statcache which caches the return values of all kinds of return values from the operating system IO? That means, as long as you stick to the php universe like stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms() everything is fine, but don’t mix it with exec(“rm -rf $yourEscapeDirectory”); More on thisContinue reading “PHPUnit Code Sprint: Issue discussions”

PHPUnit Code Sprint in Autumn

Last week I traveled to Munich to attend PHPCode Sprint. Once again Sebastian Bergmann invited to work together on PHPUnit, close issues, fix bugs and think weird behaviour by tests, PHPUnit itself and PHP through. A big shout out and thank you goes to celebrate company who hosted once gain the hackathon and took careContinue reading “PHPUnit Code Sprint in Autumn”

imapsync on a mac takes too much ram

I’m currently migrating emails for one of our customers from the old hosting company to the new one. To do this we are using imapsync – an awesome tool! TL;DR: Just use the docker box by Gilles… https://hub.docker.com/r/gilleslamiral/imapsync My own journey But currently there is a weird bug on mac, that it might take aContinue reading “imapsync on a mac takes too much ram”

Pass infos to product listing page via virtual(?) DOM

We are currently implementing a module for a customer which manipulates filters and should update the sidebar with new content. I think I found a very nifty way to pass informations to the JS to update the sidebar without another request. Product list ist HTML and not JSON The first important finding was, that althoughContinue reading “Pass infos to product listing page via virtual(?) DOM”

Shopware: Plugin install on CLI works, but admin removes it again!?

Today I had a weird behaviour of one of our customers store. We tried to install the Shopware Security Plugin and what happened was: TL;DR: Opcache. I turned to Shopware’s slack and asked the community. We had this behaviour in the past, but I couldn’t remember what the problem was. Thankfully I got an answerContinue reading “Shopware: Plugin install on CLI works, but admin removes it again!?”

PHPUnit and anonymous classes as “mocks”

I implemented a process from login to a third party system. Because I wanted to be sure to use the right keys and don’t mix up anything between the login subscriber, the message creator and the handler which handles the message from the queue. In-memory queue for testing My first idea was to use anContinue reading “PHPUnit and anonymous classes as “mocks””

TIL: PHPStorm Customize toolbar

Yesterday I updated PHPStorm to the newest ERP version 2024.2. Today I wanted to debug stuff and found the “Run to cursor” hidden behind three dots: I opened an issue with jetbrains, because it is shitty to hide the button I need. Two awesome things happen: Update: Run to Cursor as a line feature ThanksContinue reading “TIL: PHPStorm Customize toolbar”

xbar and bitbucket Pull Requests

If you are like me, “out of sight, out of mind” gets a whole new dimension. Therefore I want to have an overview about all the things I need to take care of. One thing which I often forget is code review of the pull requests. While looking through this I stumbled over xbar whichContinue reading “xbar and bitbucket Pull Requests”