Skip to content

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

Description

@jakub-bochenski
$ 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                 ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions