Skip to content

Commit

Permalink
Use empty in __construct for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Nov 3, 2017
1 parent f4f9b0f commit ef30079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dns.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Dns

public function __construct(string $domain)
{
if ($domain === '') {
if (empty($domain)) {
throw InvalidArgument::domainIsMissing();
}

Expand Down

1 comment on commit ef30079

@freekmurze
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Please sign in to comment.