reCaptcha PHP lib is not OK with php 8.0

I have a website running on an Nginx web server. I implemented the Google reCaptcha tool to stop spam. The server is Nginx 1.18.0 with php7.4-fpm supported. Everything is OK with this configuration. Recently, I am working on the development...