diff --git a/bin/console b/bin/console index cf9bec6..5e4fe74 100755 --- a/bin/console +++ b/bin/console @@ -1,5 +1,6 @@ #!/usr/bin/keyhelp-php81 -runCommand(); @@ -81,7 +82,7 @@ function confirm(String $message = 'Are you sure? ', array $options = ['y', 'n'] foreach ($options as $option) { // mark default if ($option == $default) { - $option = strtoupper($option); + $option = strtoupper(string: $option); } if ($first) { echo $option; @@ -93,8 +94,8 @@ function confirm(String $message = 'Are you sure? ', array $options = ['y', 'n'] echo '): '; $handle = fopen(filename: "php://stdin", mode: 'r'); - $line = trim(fgetc($handle)); - fclose($handle); + $line = trim(fgetc(stream: $handle)); + fclose(stream: $handle); if ($line == '') { // enter