Symfony version(s) affected: 5.1.0
With changes introduced in commit a689807, is always supposed that Kernel is simply in src directory.
This breaks applications where Kernel is put elsewhere (that, by the way, would work fine with the base definition of getProjectDir in the base kernel class).
I suggest to revert such change and to remove getProjectDir from MicroKernelTrait