Fatal error: Uncaught Error: Call to undefined function in C:\xampp\htdocs\magento2\vendor\magento\framework\Filesystem\Directory\DenyListPathValidator.php on line 74 .
Hope you are doing,
I have come across type of similar error, Do one thing checkout https://magento.stackexchange.com/questions/229797/fatal-error-uncaught-error-call-to-undefined-meth... for a precise solution, It helped me a lot.
Hope it helps you
Hit the kudos button and accept as solution