Skip to content

Commit

Permalink
Closes #5171
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 5, 2023
1 parent 008963b commit 1bd8f24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog-10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [10.0.4] - 2023-MM-DD

### Fixed

* [#5171](https://github.com/sebastianbergmann/phpunit/issues/5171): `@backupStaticProperties` and `@backupStaticAttributes` trigger an error

## [10.0.3] - 2023-02-04

### Added
Expand Down Expand Up @@ -151,6 +157,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi
* The CLI test runner can no longer be extended through inheritance, the `PHPUnit\TextUI\Command` class has been removed
* PHP 7.3, PHP 7.4, and PHP 8.0 are no longer supported

[10.0.4]: https://github.com/sebastianbergmann/phpunit/compare/10.0.3...10.0
[10.0.3]: https://github.com/sebastianbergmann/phpunit/compare/10.0.2...10.0.3
[10.0.2]: https://github.com/sebastianbergmann/phpunit/compare/10.0.1...10.0.2
[10.0.1]: https://github.com/sebastianbergmann/phpunit/compare/10.0.0...10.0.1
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/TestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private function backupSettings(string $className, string $methodName): array
$backupStaticProperties = true;
}
} elseif ($metadataForClass->isBackupStaticProperties()->isNotEmpty()) {
$metadata = $metadataForMethod->isBackupStaticProperties()->asArray()[0];
$metadata = $metadataForClass->isBackupStaticProperties()->asArray()[0];

assert($metadata instanceof BackupStaticProperties);

Expand Down

0 comments on commit 1bd8f24

Please sign in to comment.