Skip to content

Commit feab6bf

Browse files
committed
Unify use of Arr helper
1 parent 800ecf9 commit feab6bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(iterable $attributes = [])
2828
*/
2929
public function set(string $key, mixed $value): static
3030
{
31-
data_set($this->attributes, $key, $value);
31+
Arr::set($this->attributes, $key, $value);
3232

3333
return $this;
3434
}
@@ -38,7 +38,7 @@ public function set(string $key, mixed $value): static
3838
*/
3939
public function get(string $key, mixed $default = null): mixed
4040
{
41-
return data_get($this->attributes, $key, $default);
41+
return Arr::get($this->attributes, $key, $default);
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)