Skip to content

Commit

Permalink
chore: add attribute to suppress php 8 notice (#5437)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored Aug 4, 2022
1 parent ee5feef commit ce35335
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Core/src/Blob.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function __toString()
* @return string
* @access private
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return base64_encode((string) $this->value);
Expand Down
1 change: 1 addition & 0 deletions Core/src/GeoPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ private function validateValue($value, $type, $allowNull = false)
* @return object
* @access private
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return (object) $this->point();
Expand Down
1 change: 1 addition & 0 deletions Core/src/Int64.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function __toString()
* @return string
* @access private
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->value;
Expand Down
1 change: 1 addition & 0 deletions Core/src/Timestamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function formatForApi()
* @return string
* @access private
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->formatAsString();
Expand Down

0 comments on commit ce35335

Please sign in to comment.