phpcs Fatal Error with wp-coding-standards/wpcs

PHP: v8.2.5
phpcs: v3.7.2
wp-coding-standards/wpcs: v2.3

Solution

modify the PHP configuration to stop emitting the warning
php.ini

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

Cause

wpcs don't support php8 yet. When a deprecation error is triggered, but not the expected return, the Fatal Error occurs.