Skip to content

Commit db5b897

Browse files
committed
update bin/parse
1 parent 8c72e9d commit db5b897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/parse

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ try {
2323
$manager = new \Pdp\PublicSuffixListManager();
2424
$parser = new Pdp\Parser($manager->getList());
2525
$url = $parser->parseUrl($domain);
26-
$suffixValid = ($parser->isSuffixValid((string) $url->host)) ? 'IS' : 'IS NOT';
26+
$suffixValid = ($parser->isSuffixValid((string) $url->getHost())) ? 'IS' : 'IS NOT';
2727

2828
print_r($url->toArray());
2929
echo sprintf('Host: %s', $url) . PHP_EOL;
3030
echo sprintf(
3131
"'%s' %s a valid public suffix.",
32-
$url->host->publicSuffix,
32+
$url->getHost()->getPublicSuffix(),
3333
$suffixValid
3434
) . PHP_EOL;
3535
} catch (\Exception $e) {

0 commit comments

Comments
 (0)