From 2c92708ac3c7ba9bb6d93c4bf7d97ea422ae41a2 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Fri, 11 Dec 2020 15:40:51 -0600 Subject: [PATCH] replace assert($x is Y) with $x as Y --- src/Writer.hack | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Writer.hack b/src/Writer.hack index ef970f4..99b19b6 100644 --- a/src/Writer.hack +++ b/src/Writer.hack @@ -129,10 +129,9 @@ final class Writer { $map = \array_map( ($sub_map): mixed ==> { - assert($sub_map is KeyedContainer<_, _>); return \array_map( $path ==> $this->relativePath($path as string), - $sub_map, + $sub_map as KeyedContainer<_, _>, ); }, $map,