From b2783eaa41ad26cb2480e842d486aa9ef1511d20 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 22 May 2026 10:31:27 +0200 Subject: [PATCH] fix: php 8.4 compatibility --- src/TestSimple/Assert.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TestSimple/Assert.php b/src/TestSimple/Assert.php index c920aef..7110ecf 100644 --- a/src/TestSimple/Assert.php +++ b/src/TestSimple/Assert.php @@ -95,8 +95,8 @@ private function cmp_error(\Throwable $expect, \Throwable $actual) : bool } private function fail( string $call_location - , string $description = null - , string $failure = null + , ?string $description = null + , ?string $failure = null ) { $this->fail_count++; @@ -120,7 +120,7 @@ private function fail( string $call_location return false; } - private function pass(string $description = null) + private function pass(?string $description = null) { $msg = sprintf("ok %d", $this->test_count); if( $description )