Fix PHP stan issues

Closes #3611496

Merge request reports

Loading