diff --git a/src/Api/Serializer/BasicIPInfoSerializer.php b/src/Api/Serializer/BasicIPInfoSerializer.php index 6a02e64..f2753a6 100644 --- a/src/Api/Serializer/BasicIPInfoSerializer.php +++ b/src/Api/Serializer/BasicIPInfoSerializer.php @@ -44,6 +44,6 @@ protected function getDefaultAttributes($ip): array */ public function getId($model) { - return hash('sha256', $model->address); + return hash('sha256', (string)$model->address); } }