File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
2121
2222## [ 9.2.17] - 2022-MM-DD
2323
24+ ### Changed
25+
26+ * [ #928 ] ( https://github.com/sebastianbergmann/php-code-coverage/pull/928 ) : Avoid unnecessary ` is_file() ` calls
27+
2428### Fixed
2529
2630* [ #926 ] ( https://github.com/sebastianbergmann/php-code-coverage/pull/926 ) : Static Analysis cache does not work with ` open_basedir `
Original file line number Diff line number Diff line change @@ -99,11 +99,7 @@ public function isFile(string $filename): bool
9999
100100 public function isExcluded (string $ filename ): bool
101101 {
102- if (!$ this ->isFile ($ filename )) {
103- return true ;
104- }
105-
106- return !isset ($ this ->files [$ filename ]);
102+ return !isset ($ this ->files [$ filename ]) || !$ this ->isFile ($ filename );
107103 }
108104
109105 /**
You can’t perform that action at this time.
0 commit comments