The #[\ReturnTypeWillChange] attribute and the error message both belong to PHP 8, so I guess that the server is upgraded.