aboutsummaryrefslogtreecommitdiffstats
path: root/includes/page/Article.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/page/Article.php')
-rw-r--r--includes/page/Article.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/page/Article.php b/includes/page/Article.php
index 1937abac9fed..3ae618bc5220 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -1092,7 +1092,7 @@ class Article implements Page {
* @return string[] The policy that should be set
* @todo actions other than 'view'
*/
- public function getRobotPolicy( $action, ParserOutput $pOutput = null ) {
+ public function getRobotPolicy( $action, ?ParserOutput $pOutput = null ) {
$context = $this->getContext();
$mainConfig = $context->getConfig();
$articleRobotPolicies = $mainConfig->get( MainConfigNames::ArticleRobotPolicies );
@@ -2011,7 +2011,7 @@ class Article implements Page {
* @param UserIdentity|null $user The relevant user
* @return ParserOutput|false ParserOutput or false if the given revision ID is not found
*/
- public function getParserOutput( $oldid = null, UserIdentity $user = null ) {
+ public function getParserOutput( $oldid = null, ?UserIdentity $user = null ) {
if ( $user === null ) {
$parserOptions = $this->getParserOptions();
} else {