What happens?:
When I wrote the patch for SemanticMediaWiki to use JSON serialization instead of the PHP one in ParserCache as proposed by T263579, the patch for SemanticMediaWiki to use JSON serialization instead of the PHP one, the object is correctly serialized, but the unserialization has not effect: in the resulting ParserOutput object, the key $parserOutput->mExtensionData['smwdata'] is an array instead of an object.
It can be observed with a debugger (or a var_dump) by observing $parserOutput['smwdata'] in ParserOutput::newFromJsonArray() when Semantic MediaWiki is installed in the version of the PR.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
- MediaWiki 1.36.1 f33fff9a1
- Semantic MediaWiki 4.0.0-alpha with this PR