CakePHP, PHPStan and endless type checks

Either drop your phpstan level or add exclusions is my advice.

The cakedc lib you are including is cranked to the max: cakephp-phpstan/phpstan.neon at master · CakeDC/cakephp-phpstan · GitHub which is nice for new projects, but for existing projects with lots of code I recommend slowly turning up levels by a single increment over time until you hit diminishing returns.