Skip to content

Commit ab7c053

Browse files
authored
Update Driver.php
因为有自增接口,数字无法使用序列化
1 parent ae3942f commit ab7c053

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Driver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ public function getTagKey(string $tag): string
233233
*/
234234
protected function serialize($data): string
235235
{
236+
if (is_numeric($data)) {
237+
return (string) $data;
238+
}
239+
236240
$serialize = $this->options['serialize'][0] ?? "serialize";
237241

238242
return $serialize($data);

0 commit comments

Comments
 (0)