Skip to content

Commit 9a4ccd3

Browse files
koriymclaude
andcommitted
fix: remove unused variable in ToArrayTest
Remove unused variable in testNestedObject method. The test creates the author object directly in the constructor instead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f6bced4 commit 9a4ccd3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/ToArrayTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ public function __construct(
3535

3636
public function testNestedObject(): void
3737
{
38-
$author = new class {
39-
public function __construct(
40-
#[Input]
41-
public readonly string $name = 'John',
42-
#[Input]
43-
public readonly string $email = 'john@example.com',
44-
) {
45-
}
46-
};
47-
4838
$article = new class {
4939
#[Input]
5040
public readonly string $title;

0 commit comments

Comments
 (0)