switched out logical operator

This commit is contained in:
Andy Miller
2015-09-13 19:22:26 -06:00
parent 2c85f1cc2b
commit 42987d96e3

View File

@@ -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'
);