Skip to content

Commit 09e3d33

Browse files
committed
Use getKey instead of assuming ID
1 parent 6b8db67 commit 09e3d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AnonymizesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function withoutAnonymization(callable $callback): mixed
4747
*/
4848
public function getAnonymizableSeed(): string
4949
{
50-
return get_class($this).':'.($this->getAttributes()[$this->getKeyName()] ?? '');
50+
return get_class($this).':'.$this->getKey();
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)