@@ -381,7 +381,7 @@ |
||
381 | 381 | /** |
382 | 382 | * @see ArrayObject::append |
383 | 383 | * |
384 | - * @param mixed $value |
|
384 | + * @param Hashable $value |
|
385 | 385 | */ |
386 | 386 | public function append( $value ) { |
387 | 387 | $this->setElement( null, $value ); |
@@ -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 ) { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * @dataProvider provideDeserializationCompatibility |
163 | 163 | * |
164 | 164 | * @param string $serialized |
165 | - * @param EntityId $expected |
|
165 | + * @param EntityIdValue $expected |
|
166 | 166 | */ |
167 | 167 | public function testDeserializationCompatibility( $serialized, EntityIdValue $expected ) { |
168 | 168 | $id = unserialize( $serialized ); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Wikibase\DataModel\Tests\Entity; |
4 | 4 | |
5 | -use InvalidArgumentException; |
|
6 | 5 | use PHPUnit_Framework_TestCase; |
7 | 6 | use Wikibase\DataModel\Entity\EntityId; |
8 | 7 | use Wikibase\DataModel\Entity\EntityIdValue; |