From 262ce14bb6d1dfac2bed62728bc8df451ff33f94 Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 3 Dec 2018 10:48:29 +0100 Subject: [PATCH] block: Fix PHPDoc comments to match function signature (or method) - Add @param annotation for $row to newFromRow() method in Restriction interface declaration. - Remove @param annotation for $option not used in loadByBlockId() method signature. Change-Id: Iec49b9541ea06da9f497e45bd35df26f8124aecf --- includes/block/BlockRestriction.php | 1 - includes/block/Restriction/Restriction.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/block/BlockRestriction.php b/includes/block/BlockRestriction.php index 43d70e6b1c..5bf286d013 100644 --- a/includes/block/BlockRestriction.php +++ b/includes/block/BlockRestriction.php @@ -34,7 +34,6 @@ class BlockRestriction { * * @param int|array $blockId * @param IDatabase|null $db - * @param array $options Options to pass to the select query. * @return Restriction[] */ public static function loadByBlockId( $blockId, IDatabase $db = null ) { diff --git a/includes/block/Restriction/Restriction.php b/includes/block/Restriction/Restriction.php index f1cc1b0a22..5fefecc39f 100644 --- a/includes/block/Restriction/Restriction.php +++ b/includes/block/Restriction/Restriction.php @@ -63,6 +63,7 @@ interface Restriction { /** * Creates a new Restriction from a database row. * + * @param \stdClass $row * @return self */ public static function newFromRow( \stdClass $row ); -- 2.20.1