Check your php.ini. It looks like you're loading the fileinfo extension twice.
There are 2 different php.ini's you need to check. One for the webserver and one for the CLI version. I'm guessing the problem is in the CLI version since that's what is being used when running artisan/composer commands.