summaryrefslogtreecommitdiff
path: root/vendor/phpunit/php-code-coverage/src/Filter.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/php-code-coverage/src/Filter.php')
-rw-r--r--vendor/phpunit/php-code-coverage/src/Filter.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/phpunit/php-code-coverage/src/Filter.php b/vendor/phpunit/php-code-coverage/src/Filter.php
index ef0a2c62f..5a0a142a8 100644
--- a/vendor/phpunit/php-code-coverage/src/Filter.php
+++ b/vendor/phpunit/php-code-coverage/src/Filter.php
@@ -100,11 +100,7 @@ final class Filter
public function isExcluded(string $filename): bool
{
- if (!$this->isFile($filename)) {
- return true;
- }
-
- return !isset($this->files[$filename]);
+ return !isset($this->files[$filename]) || !$this->isFile($filename);
}
/**