Skip to content

Commit 8c37eec

Browse files
committed
Fix option validation
1 parent a5835f6 commit 8c37eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/SinglestoreBackupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function handle()
3434
throw new InvalidArgumentException('You can\'t use --init and --differential options at the same time.');
3535
}
3636

37-
if (($this->option('with-date') || $this->option('with-time')) && $this->option('init') || $this->option('differential')) {
37+
if (($this->option('with-date') || $this->option('with-time')) && ($this->option('init') || $this->option('differential'))) {
3838
throw new InvalidArgumentException('You can\'t use --init or --differential options with --with-date or --with-time options.');
3939
}
4040

0 commit comments

Comments
 (0)