To stop the warnings, configuration would need to be changed in PHP config, or those warnings be silenced by the developer.
Any decent webapp has had this issues resolved a long time ago.
I would suggest that websites that will be effected probably will not migrate to PHP 8 that quickly.