File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,12 @@ public function getData()
175175 $ this ->processUncoveredFilesFromWhitelist ();
176176 }
177177
178+ // We need to apply the blacklist filter a second time
179+ // when no whitelist is used.
180+ if (!$ this ->filter ->hasWhitelist ()) {
181+ $ this ->applyListsFilter ($ this ->data );
182+ }
183+
178184 return $ this ->data ;
179185 }
180186
Original file line number Diff line number Diff line change @@ -285,4 +285,15 @@ public function getWhitelist()
285285 {
286286 return array_keys ($ this ->whitelistedFiles );
287287 }
288+
289+ /**
290+ * Returns whether this filter has a whitelist.
291+ *
292+ * @return boolean
293+ * @since Method available since Release 1.1.0
294+ */
295+ public function hasWhitelist ()
296+ {
297+ return !empty ($ this ->whitelistedFiles );
298+ }
288299}
You can’t perform that action at this time.
0 commit comments