PHP 7.4 is not compatible. Remove it totally and try setup again. Looks like your XAMP is still using something dependent on PHP7.4. It is not backward compatible with certain previous PHP arrays.
have managed to solve my PHP version issue.... gave direction to use PHP 7.2 version for my Foodoma project directory in Apache httpd-xampp.conf file..thanks guys
ScriptAlias /php72/ "C:/xampp/php72/"
<Directory "C:/xampp/php72">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
</Directory>
<Directory "C:\xampp\htdocs\cms">
UnsetEnv PHPRC
<FilesMatch "\.php$">
SetHandler application/x-httpd-php72
Action application/x-httpd-php72 "/php72/php-cgi.exe"
</FilesMatch>
</Directory>