It seems like \Spatie\Robots\Robots::create() of type object<self> is incompatible with the declared type object<Spatie\Robots\Robots> of property $robots.
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..
Loading history...
20
}
21
22
public function shouldCrawlCallback(callable $callback)
23
{
24
$this->profile = $callback;
25
}
26
27
/*
28
* Determine if the given url should be crawled.
29
*/
30
public function shouldCrawl(UriInterface $url): bool
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..