Skip to content

Commit

Permalink
Closes #3599
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 22, 2019
1 parent a04ce0d commit 0a874e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog-8.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes of the PHPUnit 8.1 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [8.1.4] - 2019-MM-DD

### Fixed

* Fixed [#3599](https://github.com/sebastianbergmann/phpunit/issues/3599): Type error in `TestCase::createGlobalStateSnapshot()`

## [8.1.3] - 2019-04-19

### Fixed
Expand Down Expand Up @@ -35,6 +41,7 @@ All notable changes of the PHPUnit 8.1 release series are documented in this fil

* The `groups` attribute on the `test` element in the TestDox XML report is now deprecated

[8.1.4]: https://github.com/sebastianbergmann/phpunit/compare/8.1.3...8.1.4
[8.1.3]: https://github.com/sebastianbergmann/phpunit/compare/8.1.2...8.1.3
[8.1.2]: https://github.com/sebastianbergmann/phpunit/compare/8.1.1...8.1.2
[8.1.1]: https://github.com/sebastianbergmann/phpunit/compare/8.1.0...8.1.1
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ private function snapshotGlobalState(): void
return;
}

$this->snapshot = $this->createGlobalStateSnapshot($this->backupGlobals);
$this->snapshot = $this->createGlobalStateSnapshot($this->backupGlobals === true);
}

/**
Expand All @@ -1926,7 +1926,7 @@ private function restoreGlobalState(): void
try {
$this->compareGlobalStateSnapshots(
$this->snapshot,
$this->createGlobalStateSnapshot($this->backupGlobals)
$this->createGlobalStateSnapshot($this->backupGlobals === true)
);
} catch (RiskyTestError $rte) {
// Intentionally left empty
Expand Down

0 comments on commit 0a874e3

Please sign in to comment.