Skip to content

Commit b015312

Browse files
Closes #1135
1 parent 54477f4 commit b015312

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ChangeLog-12.5.md

Lines changed: 7 additions & 0 deletions
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.5.3] - 2026-02-06
6+
7+
### Fixed
8+
9+
* [#1135](https://github.com/sebastianbergmann/php-code-coverage/issues/1135): Internal methods `driverIs*()` must not assume that `CodeCoverage::$driver` is set
10+
511
## [12.5.2] - 2025-12-24
612

713
### Fixed
@@ -29,6 +35,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
2935
* [#1126](https://github.com/sebastianbergmann/php-code-coverage/issues/1126): Add test execution time to `<test>` elements under `projects/tests` in the XML reports index file
3036
* [#1127](https://github.com/sebastianbergmann/php-code-coverage/issues/1127): Add SHA-1 hash of content of SUT source file to XML report
3137

38+
[12.5.3]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.5.2...12.5.3
3239
[12.5.2]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.5.1...12.5.2
3340
[12.5.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.5.0...12.5.1
3441
[12.5.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/12.4.0...12.5.0

src/CodeCoverage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,15 @@ public function validate(TargetCollection $targets): ValidationResult
411411
*/
412412
public function driverIsPcov(): bool
413413
{
414-
return $this->driver->isPcov();
414+
return isset($this->driver) && $this->driver->isPcov();
415415
}
416416

417417
/**
418418
* @internal
419419
*/
420420
public function driverIsXdebug(): bool
421421
{
422-
return $this->driver->isXdebug();
422+
return isset($this->driver) && $this->driver->isXdebug();
423423
}
424424

425425
/**

src/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Version
1919
public static function id(): string
2020
{
2121
if (self::$version === '') {
22-
self::$version = (new VersionId('12.5.2', dirname(__DIR__)))->asString();
22+
self::$version = (new VersionId('12.5.3', dirname(__DIR__)))->asString();
2323
}
2424

2525
return self::$version;

0 commit comments

Comments
 (0)