Skip to content

Commit 79385bd

Browse files
canvuralondrejmirtes
authored andcommitted
feat: add TypeCombinator::removeTruthy method
1 parent b744041 commit 79385bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Type/TypeCombinator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,4 +1341,9 @@ public static function removeFalsey(Type $type): Type
13411341
return self::remove($type, StaticTypeFactory::falsey());
13421342
}
13431343

1344+
public static function removeTruthy(Type $type): Type
1345+
{
1346+
return self::remove($type, StaticTypeFactory::truthy());
1347+
}
1348+
13441349
}

0 commit comments

Comments
 (0)