Issue #3616429: Add a PHPStan configuration at level 1 and fix what it reported

Closes #3616429

Merge request reports

Loading