Skip to content

Commit 4827e61

Browse files
committed
chore: correct function name
1 parent ee22a94 commit 4827e61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/KeyRemoved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getPath(): string
2626
return $this->path;
2727
}
2828

29-
public function getKey()
29+
public function getName()
3030
{
3131
return $this->name;
3232
}

tests/Feature/JsonDiffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function test_elements_removed_between_jsons(): void
191191

192192
// Check that the correct keys are removed
193193
$keysRemoved->each(function (KeyRemoved $keyRemoved) use ($removedItems): void {
194-
$this->assertArrayHasKey($keyRemoved->getKey(), $removedItems);
194+
$this->assertArrayHasKey($keyRemoved->getName(), $removedItems);
195195
});
196196

197197
// Check that the correct values are removed

0 commit comments

Comments
 (0)