Skip to content

Commit 9d0bf46

Browse files
authored
refactor(mapper): remove redundant string check (#1393)
1 parent 60c102b commit 9d0bf46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mapper/src/ObjectFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function toArray(): array
127127
return $this->from;
128128
}
129129

130-
if (is_string($this->from) && Json\is_valid($this->from)) {
130+
if (Json\is_valid($this->from)) {
131131
return $this->with(JsonToArrayMapper::class)->do();
132132
}
133133

0 commit comments

Comments
 (0)