File tree Expand file tree Collapse file tree 2 files changed +484
-3
lines changed Expand file tree Collapse file tree 2 files changed +484
-3
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ public function overrideWithInput(InputInterface $input): void
74
74
$ settings ->setInputFormat ((string ) $ input ->getOption ('input-format ' ));
75
75
}
76
76
77
- if ($ input ->getOption ('log-path ' )) {
77
+ if ($ input ->hasOption ( ' log-path ' ) && $ input -> getOption ('log-path ' )) {
78
78
$ settings ->setLogPath ((string ) $ input ->getOption ('log-path ' ));
79
79
}
80
80
81
- if ($ input ->getOption ('fail-on-error ' )) {
81
+ if ($ input ->hasOption ( ' fail-on-error ' ) && $ input -> getOption ('fail-on-error ' )) {
82
82
$ settings ->setFailOnError (LogLevel::ERROR );
83
83
}
84
84
85
- if ($ input ->getOption ('fail-on-log ' )) {
85
+ if ($ input ->hasOption ( ' fail-on-log ' ) && $ input -> getOption ('fail-on-log ' )) {
86
86
$ settings ->setFailOnError (LogLevel::WARNING );
87
87
}
88
88
You can’t perform that action at this time.
0 commit comments