Skip to content

Commit

Permalink
[-]: don't use "InvalidArgumentException" if it isn't needed ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jun 22, 2016
1 parent a9d1f2d commit dae815c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Html2Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ private function getOptionsForElement($element)
$element = strtolower($element);

if (!array_key_exists($element, $this->options['elements'])) {
throw new \InvalidArgumentException("Element '$element' has no options");
return null;
}

return $this->options['elements'][$element];
Expand Down

0 comments on commit dae815c

Please sign in to comment.