Skip to content

Commit 72878b3

Browse files
committed
Do not apply the whitelist if it is empty
1 parent c14196e commit 72878b3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ChangeLog-4.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes of the PHP_CodeCoverage 4.0 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [4.1.0] - 2019-01-26
6+
7+
### Should be 5.0.0 but that version already exists
8+
9+
### Changed
10+
11+
* Do not apply the whitelist if it is empty
12+
513
## [4.0.4] - 2016-12-20
614

715
### Changed

src/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function isFiltered($filename)
128128

129129
$filename = realpath($filename);
130130

131-
return !isset($this->whitelistedFiles[$filename]);
131+
return $this->hasWhitelist() && !isset($this->whitelistedFiles[$filename]);
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)