Try fix :
Script yii\composer\Installer::setPermission handling the post-create-project-cmd event terminated with an exception
[ErrorException]
Argument 1 passed to yii\composer\Installer::setPermission() must be of the type array, object given, called in phar:///usr/local/bin/composer/src/Compo
ser/EventDispatcher/EventDispatcher.php on line 202 and defined
Try fix : Script yii\composer\Installer::setPermission handling the post-create-project-cmd event terminated with an exception
[ErrorException]
Argument 1 passed to yii\composer\Installer::setPermission() must be of the type array, object given, called in phar:///usr/local/bin/composer/src/Compo
ser/EventDispatcher/EventDispatcher.php on line 202 and defined