I created a PR to support compatibility with PHP 8.1 https://github.com/ibm-watson-data-lab/php-couchdb/pull/14