Skip to content

Commit c730148

Browse files
Closes #1069
1 parent 5f99d3f commit c730148

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ChangeLog-12.1.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

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

5+
## [12.1.2] - 2025-MM-DD
6+
7+
### Fixed
8+
9+
* [#1069](https://github.com/sebastianbergmann/php-code-coverage/issues/1069): Check for unintentionally covered code is wrong
10+
511
## [12.1.1] - 2025-04-03
612

713
### Fixed
@@ -14,5 +20,6 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
1420

1521
* `CacheWarmer::warmCache()` now returns the number of cache hits and cache misses
1622

23+
[12.1.2]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.1.1...main
1724
[12.1.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.1.0...12.1.1
1825
[12.1.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.0.5...12.1.0

src/CodeCoverage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ private function performUnintentionallyCoveredCodeCheck(RawCodeCoverageData $dat
513513

514514
$unintentionallyCoveredUnits = $this->processUnintentionallyCoveredUnits($unintentionallyCoveredUnits);
515515

516-
if ($unintentionallyCoveredUnits === []) {
516+
if ($unintentionallyCoveredUnits !== []) {
517517
throw new UnintentionallyCoveredCodeException(
518518
$unintentionallyCoveredUnits,
519519
);

0 commit comments

Comments
 (0)