Skip to content

Commit

Permalink
Remove redundant type validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliance committed Nov 10, 2016
1 parent 5c7d1d8 commit 9627118
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/InfiniteBitmask.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ class InfiniteBitmask

/**
* @param int[] $maskSlices
* @throws \InvalidArgumentException
*/
public function __construct(array $maskSlices = [])
{
if (!is_array($maskSlices)) {
throw new \InvalidArgumentException('Passed invalid argument: ' . gettype($maskSlices));
}

$this->maskSlices = $maskSlices;
}

Expand Down

0 comments on commit 9627118

Please sign in to comment.