This PR reverts commits 7bd05e5ce3bb62e62a19716a084497f699d42cc5 and 8907b809f56db372ec23df64a922559bd07f0a66; although they were neat implementations of new PHP 8.1 functionality, they would've required users of this library to upgrade to PHP 8.1. This ensures that our library has backwards compatibility with older PHP versions.
Testing
As indicated in #58, these changes were working as intended before these two commits were implemented.
Summary of Changes
This PR reverts commits 7bd05e5ce3bb62e62a19716a084497f699d42cc5 and 8907b809f56db372ec23df64a922559bd07f0a66; although they were neat implementations of new PHP 8.1 functionality, they would've required users of this library to upgrade to PHP 8.1. This ensures that our library has backwards compatibility with older PHP versions.
Testing
As indicated in #58, these changes were working as intended before these two commits were implemented.