aboutsummaryrefslogtreecommitdiffstats
path: root/includes/json/JsonCodec.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/json/JsonCodec.php')
-rw-r--r--includes/json/JsonCodec.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/json/JsonCodec.php b/includes/json/JsonCodec.php
index 5331b255508d..0ec82526cfe8 100644
--- a/includes/json/JsonCodec.php
+++ b/includes/json/JsonCodec.php
@@ -141,7 +141,7 @@ class JsonCodec
return $this->deserialize( $json, $expectedClass );
}
- public function deserialize( $json, string $expectedClass = null ) {
+ public function deserialize( $json, ?string $expectedClass = null ) {
Assert::parameterType( [ 'stdClass', 'array', 'string' ], $json, '$json' );
Assert::precondition(
!$expectedClass ||