Issue #3572586: Fix phpstan (next major) findings

Closes #3572586

Merge request reports

Loading