From 6f165a974a2d27c6a243c30e039b515c563756a9 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 5 Feb 2024 13:41:32 +0000 Subject: [PATCH] fmt --- core/stdlib_ex.php | 4 ++-- core/tests/StdLibExTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/stdlib_ex.php b/core/stdlib_ex.php index f2197f8f..516d0ea0 100644 --- a/core/stdlib_ex.php +++ b/core/stdlib_ex.php @@ -5,7 +5,7 @@ * @param T|false $x * @return T */ -function false_throws(mixed $x, ?callable $errorgen=null): mixed +function false_throws(mixed $x, ?callable $errorgen = null): mixed { if($x === false) { $msg = "Unexpected false"; @@ -22,7 +22,7 @@ function false_throws(mixed $x, ?callable $errorgen=null): mixed * @param T|null $x * @return T */ -function null_throws(mixed $x, ?callable $errorgen=null): mixed +function null_throws(mixed $x, ?callable $errorgen = null): mixed { if($x === null) { $msg = "Unexpected null"; diff --git a/core/tests/StdLibExTest.php b/core/tests/StdLibExTest.php index 4b2ee485..c6a3476c 100644 --- a/core/tests/StdLibExTest.php +++ b/core/tests/StdLibExTest.php @@ -16,7 +16,7 @@ class StdLibExTest extends ShimmiePHPUnitTestCase public function testJsonEncodeError(): void { - $e = $this->assertException(\Exception::class, function() { + $e = $this->assertException(\Exception::class, function () { json_encode_ex("\xB1\x31"); }); $this->assertEquals(