block: Fix PHPDoc comments to match function signature (or method)
authorAlangi Derick <alangiderick@gmail.com>
Mon, 3 Dec 2018 09:48:29 +0000 (10:48 +0100)
committerAlangi Derick <alangiderick@gmail.com>
Mon, 3 Dec 2018 09:59:45 +0000 (10:59 +0100)
- 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
includes/block/Restriction/Restriction.php

index 43d70e6..5bf286d 100644 (file)
@@ -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 ) {
index f1cc1b0..5fefecc 100644 (file)
@@ -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 );