mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-23 10:19:35 +00:00
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:
parent
8d70615b5e
commit
8825c3dce4
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue