mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 23:47:45 +02:00
switched out logical operator
This commit is contained in:
@@ -117,7 +117,7 @@ class NewUserCommand extends Command
|
||||
// Get fullname
|
||||
$question = new Question('Enter a <yellow>fullname</yellow>: ');
|
||||
$question->setValidator(function ($value) {
|
||||
if ($value === null or trim($value) == '') {
|
||||
if ($value === null || trim($value) == '') {
|
||||
throw new RuntimeException(
|
||||
'Fullname is required'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user