Delete Test Donors and Donations generates a fatal error in PHP 8.3

The “Delete Test Donors and Donations” tool generates a fatal error on sites running PHP 8.3+.
The workaround, for now, is to delete test donors and donations via the Donors and Donation pages.