jakeasmith / commit

MIT License
132 stars 7 forks source link

bug: array_map() expects parameter 1 to be a valid callback #13

Open jakub-bochenski opened 6 years ago

jakub-bochenski commented 6 years ago
$ git commit -a
hint: Waiting for your editor to close the file... Use the commit builder? (y/n) [y]: 
PHP Warning:  array_map() expects parameter 1 to be a valid callback, function 'mb_strtolower' not found or invalid function name in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php on line 226
PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php:228
Stack trace:
#0 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(259): League\CLImate\TerminalObject\Dynamic\Input->levelPlayingField('y')
#1 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(281): League\CLImate\TerminalObject\Dynamic\Input->isAcceptableResponse('y')
#2 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(65): League\CLImate\TerminalObject\Dynamic\Input->isValidResponse('y')
#3 /home/bochja/commit/bin/commit(17): League\CLImate\TerminalObject\Dynamic\Input->prompt()
#4 {main}                                                                                                                                                                                                                                                                 
  thrown in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php on line 228                                                                                                                                                                    
error: There was a problem with the editor '/home/bochja/commit/bin/commit'.                                                                                                                                                                                              
Please supply the message using either -m or -F option.             

$ php --version                                                                                                                                                                                                    
PHP 7.2.7-0ubuntu0.18.04.2 (cli) (built: Jul  4 2018 16:55:24) ( NTS )                                                                                                                                                                                                    
Copyright (c) 1997-2018 The PHP Group                                                                                                                                                                                                                                     
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies                                                                                                                                                                                                             
    with Zend OPcache v7.2.7-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies                 ```
jakub-bochenski commented 6 years ago

Apparently needs sudo apt-get install php-mbstring