#95155Resolve fatal errors in PHP 8.1 unit tests
Description
First batch. This fixes one issue, and allows the entire test suite to complete without fataling (albeit still with errors).
First batch. This fixes one issue, and allows the entire test suite to complete without fataling (albeit still with errors).