From c5f8021f863d3f027d99b0a516e1ffc43a1fa2a5 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Tue, 20 Jul 2021 19:19:18 +0200
Subject: [PATCH] PHP 8.1: silence deprecation warning about missing return
type
---
tests/phpunit/includes/class-jsonserializable-object.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/phpunit/includes/class-jsonserializable-object.php b/tests/phpunit/includes/class-jsonserializable-object.php
index eb4ae5c3af..e235327020 100644
a
|
b
|
class JsonSerializable_Object implements JsonSerializable { |
15 | 15 | $this->data = $data; |
16 | 16 | } |
17 | 17 | |
| 18 | #[ReturnTypeWillChange] |
18 | 19 | public function jsonSerialize() { |
19 | 20 | return $this->data; |
20 | 21 | } |