added missing named parameters, added strict_types

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-26 19:01:29 +01:00
parent 3bc4c21411
commit 8fc195a558
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/usr/bin/keyhelp-php81
<?php declare(strict_types=1);
namespace App\Controller;
error_reporting(error_level: E_ALL);
if (php_sapi_name() !== 'cli') {
exit;
}
@ -94,7 +94,7 @@ function confirm(String $message = 'Are you sure? ', array $options = ['y', 'n']
echo '): ';
$handle = fopen(filename: "php://stdin", mode: 'r');
$line = trim(fgetc(stream: $handle));
$line = trim(string: fgetc(stream: $handle));
fclose(stream: $handle);
if ($line == '') {