Skip to content

Commit

Permalink
fix(Ret): PHP 8.0 BadMethodCallException: Property or method "329$139…
Browse files Browse the repository at this point in the history
…" not found
  • Loading branch information
twinh committed Nov 30, 2023
1 parent 6029f5f commit 87ff581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ret.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function transform($class): self
return $this;
}

$this->data = $class::toArray($this->data['data']) + $this->data;
$this->data = forward_static_call([$class, 'toArray'], $this->data['data']) + $this->data;
return $this;
}

Expand Down

0 comments on commit 87ff581

Please sign in to comment.