added missing named parameters, added strict_types
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
3bc4c21411
commit
8fc195a558
|
@ -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 == '') {
|
||||
|
|
Loading…
Reference in New Issue