From 6a9d19f314f56b070f7301f0d777a8f81cdf1914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Thu, 8 Aug 2024 10:28:23 +0800 Subject: [PATCH] Format code (#6994) --- tests/OptionalTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/OptionalTest.php b/tests/OptionalTest.php index e05dd83..f83d925 100644 --- a/tests/OptionalTest.php +++ b/tests/OptionalTest.php @@ -161,7 +161,7 @@ public function testOptional() { $this->assertNull(optional(null)->something()); - $this->assertEquals(10, optional(new class() { + $this->assertEquals(10, optional(new class { public function something() { return 10; @@ -240,10 +240,10 @@ public function testOptionalIsMacroable() $this->assertNull(optional(null)->present()->something()); - $this->assertSame('$10.00', optional(new class() { + $this->assertSame('$10.00', optional(new class { public function present() { - return new class() { + return new class { public function something() { return '$10.00';