Skip to content

Commit

Permalink
Cast exception message to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored and sebastianbergmann committed Aug 7, 2019
1 parent bfd98d0 commit 052b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Constraint/ExceptionMessage.php
Expand Up @@ -42,7 +42,7 @@ protected function matches($other): bool
return $other->getMessage() === '';
}

return \strpos($other->getMessage(), $this->expectedMessage) !== false;
return \strpos((string) $other->getMessage(), $this->expectedMessage) !== false;
}

/**
Expand Down

0 comments on commit 052b0d3

Please sign in to comment.