fix deprecated issues in php74

Laurent requested to merge php74-deprecated-fixes into master

Merge request reports