@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * @see Comparable::equals |
| 86 | 86 | * |
| 87 | - * @param mixed $target |
|
| 87 | + * @param AliasGroup $target |
|
| 88 | 88 | * |
| 89 | 89 | * @return bool |
| 90 | 90 | */ |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | * |
| 145 | 145 | * @param PropertyIdProvider $object |
| 146 | 146 | * |
| 147 | - * @return bool|int |
|
| 147 | + * @return integer |
|
| 148 | 148 | * @throws RuntimeException |
| 149 | 149 | */ |
| 150 | 150 | public function getFlatArrayIndexOfObject( $object ) { |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | * |
| 131 | 131 | * @since 0.3 |
| 132 | 132 | * |
| 133 | - * @param mixed $target |
|
| 133 | + * @param SnakList $target |
|
| 134 | 134 | * |
| 135 | 135 | * @return bool |
| 136 | 136 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Wikibase\DataModel\Entity; |
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | -use Serializable; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * Base class for hierarchical entity IDs. Hierarchical entity IDs are addresses that can be |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * Splits an ID serialization into the relative part, and the base ID. |
| 46 | 46 | * |
| 47 | 47 | * @param $serialization |
| 48 | - * @return array A two element array of strings, [ $basePart, $relativePart ] |
|
| 48 | + * @return string[] A two element array of strings, [ $basePart, $relativePart ] |
|
| 49 | 49 | */ |
| 50 | 50 | protected static function splitHierarchicalSerialization( $serialization ) { |
| 51 | 51 | if ( !preg_match( '/^(.+)[-#]([^-#]+)/', $serialization, $m ) ) { |