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