File tree 2 files changed +2
-2
lines changed
src/Magento/FunctionalTestingFramework/StaticCheck
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function execute(InputInterface $input)
96
96
StaticChecksList::getErrorFilesPath () . DIRECTORY_SEPARATOR . self ::ERROR_LOG_FILENAME . '.txt ' ,
97
97
self ::ERROR_LOG_MESSAGE
98
98
);
99
- if (!empty ($ this ->warnings )) {
99
+ if (!empty ($ this ->warnings ) && ! empty ( $ this -> errors ) ) {
100
100
$ this ->output .= "\n " . $ this ->scriptUtil ->printWarningsToFile (
101
101
$ this ->warnings ,
102
102
StaticChecksList::getErrorFilesPath () . DIRECTORY_SEPARATOR . self ::WARNING_LOG_FILENAME . '.txt ' ,
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public function execute(InputInterface $input)
155
155
StaticChecksList::getErrorFilesPath () . DIRECTORY_SEPARATOR . self ::ERROR_LOG_FILENAME . '.txt ' ,
156
156
self ::ERROR_LOG_MESSAGE
157
157
);
158
- if (!empty ($ this ->warnings )) {
158
+ if (!empty ($ this ->warnings ) && ! empty ( $ this -> errors ) ) {
159
159
$ this ->output .= "\n " . $ this ->scriptUtil ->printWarningsToFile (
160
160
$ this ->warnings ,
161
161
StaticChecksList::getErrorFilesPath () . DIRECTORY_SEPARATOR . self ::WARNING_LOG_FILENAME . '.txt ' ,
You can’t perform that action at this time.
0 commit comments