Open IvanWillsBI opened 2 months ago
public static function parse(mixed $data): self
{
if ($data instanceof self) {
return $data;
}
if (is_string($data)) {
return new self($data);
}
if (is_array($data)) {
return new self(json_encode($data));
}
if (is_resource($data)) {
return new self('');
}
return new self(json_encode($data));
}
public static function parse(mixed $data): self { if ($data instanceof self) { return $data; } if (is_string($data)) { return new self($data); } if (is_array($data)) { return new self(json_encode($data)); } if (is_resource($data)) { return new self(''); } return new self(json_encode($data)); }
Is this a viable fix, I would raise a PR but encountering a permissions issue