Skip to content

Commit

Permalink
Add missing type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar committed Jun 21, 2020
1 parent 7087a4e commit bb3178d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Type/Definition/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,23 +250,19 @@ public static function isOutputType($type) : bool
/**
* @param Type $type
*
* @return bool
*
* @api
*/
public static function isLeafType($type)
public static function isLeafType($type) : bool
{
return $type instanceof LeafType;
}

/**
* @param Type $type
*
* @return bool
*
* @api
*/
public static function isCompositeType($type)
public static function isCompositeType($type) : bool
{
return $type instanceof CompositeType;
}
Expand Down

0 comments on commit bb3178d

Please sign in to comment.