for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pmochine\LaravelTongue\Misc;
use Pdp\Cache;
use Pdp\CurlHttpClient;
use Pdp\Domain;
use Pdp\Manager;
/**
* Small wrapper for getting the getRegistrableDomain.
*/
class DomainParser
{
/** @var Pdp\Rules */
Pmochine\LaravelTongue\Misc\Pdp\Rules
Pdp\Rules
\
protected $rules;
public function __construct()
$manager = new Manager(new Cache(), new CurlHttpClient());
$this->rules = $manager->getRules();
$manager->getRules()
$rules
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* https://github.com/jeremykendall/php-domain-parser.
*
* @param string $url
* @return Domain
public function resolve(string $url): Domain
return $this->rules->resolve($url);