2017年6月27日 星期二

Laravel CLI fails to create new app due to Cannot use lexical variable $eventName as a parameter name

Turned out the issue is related to the guzzele version installed on the system.
After seeing similar issue reported around guzzle 5.3 on some other repositories/apps, confirmed my globally installed version by running composer global info guzzlehttp/guzzle and it was 5.3. Then updating my composer's global installation by running composer global updatesolved the problem, after seeing the update report as shown bellow, running the same laravel new app-namegenerates the application successfully.
Updating guzzlehttp/guzzle (5.3.0 => 6.2.3): Downloading (100%)

from : https://stackoverflow.com/questions/44100316/laravel-cli-fails-to-create-new-app-due-to-cannot-use-lexical-variable-eventnam

沒有留言:

張貼留言