From: Alangi Derick Date: Mon, 3 Dec 2018 09:48:29 +0000 (+0100) Subject: block: Fix PHPDoc comments to match function signature (or method) X-Git-Tag: 1.34.0-rc.0~3363^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=262ce14bb6d1dfac2bed62728bc8df451ff33f94;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 );