Hello I am going to create a project with laravel, I am using composer global installer, with the php version I am using is php 8.
but I have a problem when I do the laravel installation. What should I do?
Warning: require_once(phar://C:/composer/composer.phar/vendor/symfony/polyfill-mbstring/Resources/mb_convert_variables.php8):
Failed to open stream: phar error: “vendor/symfony/polyfill-mbstring/Resources/mb_convert_variables.php8” is not a file in phar “C:/composer/composer.phar” in phar://C:/composer/composer.phar/vendor/symfony/polyfill-mbstring/bootstrap.php on line 115
I have tried to update composer but it doesn’t work. Check out the screenshot below.
Advertisement
Answer
Remove Global composer because some global packages that not update to php8 so remove it then run composer global update
.