So i updated a symfony app the other day to version 5.1.6 and suddenly the static code analyzer psalm ran appearently in an hangup loop and never terminated.
After some investigation it showed that symfony added a .preload.php file to the src directory to enable the new PHP7.4 preloading feature.
Unfortunatly psalm parsed this file and followed all includes.
This took it so long that i took it for an endless loop.
There is some discussion in symfony github issues about this and the conclusion was to replace src/.preload.php with config/preload.php which happens now in a recipe.
Continue reading “Psalm Static Analyzer fails with Symfony’s builtin preloading file”