From 1afb3218f5ec7c5ce0db668a0b209151daac7c16 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Thu, 4 Aug 2022 11:33:22 -0700 Subject: [PATCH] chore: add attribute to suppress php 8 notice (#5437) --- src/Blob.php | 1 + src/GeoPoint.php | 1 + src/Int64.php | 1 + src/Timestamp.php | 1 + 4 files changed, 4 insertions(+) diff --git a/src/Blob.php b/src/Blob.php index 5ec55ca..0f57610 100644 --- a/src/Blob.php +++ b/src/Blob.php @@ -87,6 +87,7 @@ public function __toString() * @return string * @access private */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return base64_encode((string) $this->value); diff --git a/src/GeoPoint.php b/src/GeoPoint.php index e79856e..7174008 100644 --- a/src/GeoPoint.php +++ b/src/GeoPoint.php @@ -218,6 +218,7 @@ private function validateValue($value, $type, $allowNull = false) * @return object * @access private */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return (object) $this->point(); diff --git a/src/Int64.php b/src/Int64.php index 56d190d..70bd28b 100644 --- a/src/Int64.php +++ b/src/Int64.php @@ -72,6 +72,7 @@ public function __toString() * @return string * @access private */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->value; diff --git a/src/Timestamp.php b/src/Timestamp.php index f553cb1..2ab3eeb 100644 --- a/src/Timestamp.php +++ b/src/Timestamp.php @@ -154,6 +154,7 @@ public function formatForApi() * @return string * @access private */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->formatAsString();