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
7474 $ settings ->setInputFormat ((string ) $ input ->getOption ('input-format ' ));
7575 }
7676
77- if ($ input ->hasOption ('log-path ' )) {
77+ if ($ input ->hasOption ('log-path ' ) && $ input -> getOption ( ' log-path ' ) ) {
7878 $ settings ->setLogPath ((string ) $ input ->getOption ('log-path ' ));
7979 }
8080
81- if ($ input ->hasOption ('fail-on-error ' )) {
81+ if ($ input ->hasOption ('fail-on-error ' ) && $ input -> getOption ( ' fail-on-error ' ) ) {
8282 $ settings ->setFailOnError (LogLevel::ERROR );
8383 }
8484
85- if ($ input ->hasOption ('fail-on-log ' )) {
85+ if ($ input ->hasOption ('fail-on-log ' ) && $ input -> getOption ( ' fail-on-log ' ) ) {
8686 $ settings ->setFailOnError (LogLevel::WARNING );
8787 }
8888
You can’t perform that action at this time.
0 commit comments