From 8032a533a77a8dc28a1027d0e1ded03abab1f423 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 19 Sep 2024 09:28:28 +0200 Subject: [PATCH] Deprecate methods used for PHPUnit functionality that has been deprecated --- ChangeLog-11.0.md | 4 ++++ src/CodeCoverage.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog-11.0.md b/ChangeLog-11.0.md index d6d147c3..c75745c9 100644 --- a/ChangeLog-11.0.md +++ b/ChangeLog-11.0.md @@ -9,6 +9,10 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt * [#1037](https://github.com/sebastianbergmann/php-code-coverage/pull/1037): Upgrade Bootstrap to version 5.3.3 for HTML report * [#1046](https://github.com/sebastianbergmann/php-code-coverage/pull/1046): CSS fixes for HTML report +### Deprecated + +* The `SebastianBergmann\CodeCoverage\Filter::includeUncoveredFiles()`, `SebastianBergmann\CodeCoverage\Filter::excludeUncoveredFiles()`, and `SebastianBergmann\CodeCoverage\Filter::excludeFile()` methods have been deprecated + ## [11.0.6] - 2024-08-22 ### Changed diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php index 9c885302..736380f0 100644 --- a/src/CodeCoverage.php +++ b/src/CodeCoverage.php @@ -287,11 +287,17 @@ public function disableCheckForUnintentionallyCoveredCode(): void $this->checkForUnintentionallyCoveredCode = false; } + /** + * @deprecated + */ public function includeUncoveredFiles(): void { $this->includeUncoveredFiles = true; } + /** + * @deprecated + */ public function excludeUncoveredFiles(): void { $this->includeUncoveredFiles = false;