Skip to content

Commit

Permalink
Update AggregateIdentifier.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Miliooo committed Oct 26, 2015
1 parent 41444ff commit 2676aa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Identifier/AggregateIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ abstract class AggregateIdentifier
*/
final public function __construct($identifier)
{
if (!is_string($identifier)) {
throw new \InvalidArgumentException('expected string');
}

$this->identifier = $identifier;
}

Expand Down

0 comments on commit 2676aa7

Please sign in to comment.