Fatal error: Cannot use Elgg\Cli\Application as Application

Hello, I am pretty new to this and your help will be greatly appreciated!

I am getting an error "Fatal error: Cannot use Elgg\Cli\Application as Application because the name is already in use in *******\htdocs\elgg\vendor\elgg\elgg\engine\classes\Elgg\Logger.php on line 5" while trying to access the install url locally.

Does anyone have any idea why is this happening and how can I fix it?