task: #3579390: Bump PHPStan to level 5 and fix errors

task: #3579390: Add remaining PHPStan warnings to phpstan-baseline.neon, changing _pathologic_replace() is scary

Closes #3579390

Merge request reports

Loading