Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
replace assert(is) with as
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Dec 11, 2020
1 parent c285118 commit edae1a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ExpectObj.hack
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ class ExpectObj<T> extends Assert {
): void {
$msg = \vsprintf($msg, $args);
$value = $this->var;
assert($value is Traversable<_>);
$this->assertContentsEqual($expected, $value, $msg);
$this->assertContentsEqual($expected, $value as Traversable<_>, $msg);
}

/**
Expand Down

0 comments on commit edae1a4

Please sign in to comment.