Skip to content

Commit 79dea7f

Browse files
Explicitly mark parameter as nullable to address PHP deprecation warning (#262)
2 parents 8d6c23d + 38d3e19 commit 79dea7f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.1](https://github.com/10up/wp_mock/compare/1.1.0...1.1.1) - 2025-12-03
8+
### Fixed
9+
- Address PHP deprecation warnings about implicitly nullable parameters
10+
711
## [1.1.0](https://github.com/10up/wp_mock/compare/1.0.1...1.1.0) - 2025-03-11
812
### Added
913
- Add support for types in `expectFilter()` mocks

php/WP_Mock/Tools/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function tearDown(): void
110110
* @return TestResult
111111
* @throws Exception
112112
*/
113-
public function run(TestResult $result = null): TestResult
113+
public function run(?TestResult $result = null): TestResult
114114
{
115115
if ($result === null) {
116116
$result = $this->createResult();

0 commit comments

Comments
 (0)