Skip to content

Laravel installer fails on PHP 8.3 using Windows WSL #384

@JasonTame

Description

@JasonTame

Installer Version

5.11.1

Description

Attempting to run laravel new on WSL when using PHP 8.3 leads to the following error:

PHP Fatal error:  Uncaught Error: Call to undefined function Laravel\Installer\Console\mb_rtrim() in /home/jaytame/.config/composer/vendor/laravel/installer/src/NewCommand.php:162

I have tested on MacOS and it works fine on PHP 8.3 there, it seems like mb_trim gets polyfilled on Mac.

Steps To Reproduce

  • Run WSL on Windows
  • Install a version of PHP older than 8.4
  • Run laravel new

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions