Skip to content

Commit 64e1810

Browse files
Renamed variable
1 parent 7b540b1 commit 64e1810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Parser/Typecast.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class Typecast implements CastableInterface, UncastableInterface
4747
private array $casters = [];
4848

4949
/** @var array<non-empty-string, \Closure(mixed): mixed> */
50-
private array $uncaters = [];
50+
private array $uncasters = [];
5151

5252
/**
5353
* @param non-empty-string $role The role of the entity being typecasted
@@ -80,7 +80,7 @@ public function setRules(array $rules): array
8080
};
8181

8282
if ($rule === 'json') {
83-
$this->uncaters[$key] = static fn(mixed $value): string => \json_encode(
83+
$this->uncasters[$key] = static fn(mixed $value): string => \json_encode(
8484
$value,
8585
\JSON_UNESCAPED_UNICODE | \JSON_THROW_ON_ERROR | JSON_INVALID_UTF8_SUBSTITUTE,
8686
);
@@ -167,7 +167,7 @@ public function cast(array $data): array
167167
public function uncast(array $data): array
168168
{
169169
try {
170-
foreach ($this->uncaters as $key => $callable) {
170+
foreach ($this->uncasters as $key => $callable) {
171171
if (isset($data[$key])) {
172172
$data[$key] = $callable($data[$key]);
173173
}

0 commit comments

Comments
 (0)