We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66f2361 commit 6a9d19fCopy full SHA for 6a9d19f
tests/OptionalTest.php
@@ -161,7 +161,7 @@ public function testOptional()
161
{
162
$this->assertNull(optional(null)->something());
163
164
- $this->assertEquals(10, optional(new class() {
+ $this->assertEquals(10, optional(new class {
165
public function something()
166
167
return 10;
@@ -240,10 +240,10 @@ public function testOptionalIsMacroable()
240
241
$this->assertNull(optional(null)->present()->something());
242
243
- $this->assertSame('$10.00', optional(new class() {
+ $this->assertSame('$10.00', optional(new class {
244
public function present()
245
246
- return new class() {
+ return new class {
247
248
249
return '$10.00';
0 commit comments