We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915a956 commit ad8cc6eCopy full SHA for ad8cc6e
bin/parse
@@ -23,7 +23,7 @@ try {
23
$manager = new \Pdp\PublicSuffixListManager();
24
$parser = new Pdp\Parser($manager->getList());
25
$url = $parser->parseUrl($domain);
26
- $suffixValid = ($parser->isSuffixValid($domain)) ? 'IS' : 'IS NOT';
+ $suffixValid = ($parser->isSuffixValid((string) $url->host)) ? 'IS' : 'IS NOT';
27
28
print_r($url->toArray());
29
echo sprintf('Host: %s', $url) . PHP_EOL;
0 commit comments