Merge "HISTORY: Add MediaWiki 1.2 post-release change notes"
[lhc/web/wiklou.git] / includes / Revision / MainSlotRoleHandler.php
index 6c6fdd6..f3e5a85 100644 (file)
@@ -120,7 +120,7 @@ class MainSlotRoleHandler extends SlotRoleHandler {
                                case 'json':
                                        return CONTENT_MODEL_JSON;
                                default:
-                                       return is_null( $model ) ? CONTENT_MODEL_TEXT : $model;
+                                       return $model ?? CONTENT_MODEL_TEXT;
                        }
                }