HomePhorge

D25030

Fix PHP 8.1 and 8.2 incompatibilities mostly
Author: MacFan4000
Summary: This fixes most issues with php 8.1. Some issues still linger that I was unable to fix. Part of T15064.