From 85cd8366a6fe736036c8f917966e99b76ebba540 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Mon, 20 May 2024 08:43:30 +1000 Subject: [PATCH] lint --- src/LogFake.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LogFake.php b/src/LogFake.php index 11681f9..0c506bf 100644 --- a/src/LogFake.php +++ b/src/LogFake.php @@ -93,17 +93,18 @@ public function assertChannelIsCurrentlyForgotten(string $name, ?string $message /** * @link ... Documentation + * * @param (Closure(array): bool)|array $callback */ public function assertHasSharedContext(Closure|array $callback, ?string $message = null): LogFake { $callback = is_array($callback) ? fn ($context) => $context === $callback - $callback; + : $callback; PHPUnit::assertTrue( $callback($this->sharedContext), - $message ?? "Expected shared context was not found." + $message ?? 'Expected shared context was not found.' ); return $this;