Skip to content

Commit 33a3693

Browse files
committed
Improve Reference::equals
1 parent 454243e commit 33a3693

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Reference.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ public function getHash() {
8383
* @return boolean
8484
*/
8585
public function equals( $mixed ) {
86-
return is_object( $mixed )
87-
&& $mixed instanceof Reference
88-
&& $this->getSnaks()->equals( $mixed->getSnaks() );
86+
return $mixed instanceof self
87+
&& $this->snaks->equals( $mixed->snaks );
8988
}
9089

9190
}

0 commit comments

Comments
 (0)