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 8c72e9d commit db5b897Copy full SHA for db5b897
bin/parse
@@ -23,13 +23,13 @@ try {
23
$manager = new \Pdp\PublicSuffixListManager();
24
$parser = new Pdp\Parser($manager->getList());
25
$url = $parser->parseUrl($domain);
26
- $suffixValid = ($parser->isSuffixValid((string) $url->host)) ? 'IS' : 'IS NOT';
+ $suffixValid = ($parser->isSuffixValid((string) $url->getHost())) ? 'IS' : 'IS NOT';
27
28
print_r($url->toArray());
29
echo sprintf('Host: %s', $url) . PHP_EOL;
30
echo sprintf(
31
"'%s' %s a valid public suffix.",
32
- $url->host->publicSuffix,
+ $url->getHost()->getPublicSuffix(),
33
$suffixValid
34
) . PHP_EOL;
35
} catch (\Exception $e) {
0 commit comments