Fix type hint in ApiVisualEditorEdit

This doesn't make much of a difference, but I think it is more
correct. False is returned when the key cannot be found in the
cache. This is an expected situation here (hence the "try"). Null
can only be returned when null was stored in the cache before. This
can't happen here, as far as I understand the code.

Change-Id: I82f24e9f7234d0ec79f8223cd29e3df6e83f7f7b
This commit is contained in:
thiemowmde 2024-02-20 11:23:33 +01:00
parent 8d70615b5e
commit 8825c3dce4

View file

@ -314,7 +314,7 @@ class ApiVisualEditorEdit extends ApiBase {
* Load some parsed wikitext of an edit from the serialisation cache.
*
* @param string $hash The key of the wikitext in the serialisation cache
* @return string|null The wikitext
* @return string|false The wikitext
*/
protected function trySerializationCache( $hash ) {
$cache = ObjectCache::getLocalClusterInstance();