diff --git a/src/Traits/HasBindings.php b/src/Traits/HasBindings.php index 9ea98a2..b00a7bd 100644 --- a/src/Traits/HasBindings.php +++ b/src/Traits/HasBindings.php @@ -9,6 +9,12 @@ trait HasBindings public ?string $binding_key = null; public ?array $binding_keys = null; + public function resetBindingKeys(): void + { + $this->binding_key = null; + $this->binding_keys = null; + } + protected function nextBindingKey(mixed $value): string { $hash = md5(json_encode($value)); @@ -37,12 +43,6 @@ protected function nextKey(): string return $this->binding_key; } - public function resetBindingKeys(): void - { - $this->binding_key = null; - $this->binding_keys = null; - } - protected function flattenWithKeys(array $data): array { $result = [];