From edae1a4d746bb4af21fd8f65431ba467ebf34cc1 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Fri, 11 Dec 2020 15:53:22 -0600 Subject: [PATCH] replace assert(is) with as --- src/ExpectObj.hack | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ExpectObj.hack b/src/ExpectObj.hack index 524b509..edd600a 100644 --- a/src/ExpectObj.hack +++ b/src/ExpectObj.hack @@ -328,8 +328,7 @@ class ExpectObj 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); } /**