It seems like $renderer ?? \BenTools\Q...tiveRenderer::rfc3986() of type object<BenTools\QueryStr...tringRendererInterface> or object<self> is incompatible with the declared type object<BenTools\QueryStr...enderer\NativeRenderer> of property $renderer.
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
/**
23
* @inheritDoc
24
*/
25
public function render(QueryString $queryString): string
26
{
27
return preg_replace(
28
'/\%5B\d+\%5D/',
29
'%5B%5D',
30
$this->renderer->render($queryString)
31
);
32
}
33
34
/**
35
* @inheritDoc
36
*/
37
public function getEncoding(): int
38
{
39
return $this->renderer->getEncoding();
40
}
41
42
/**
43
* @inheritDoc
44
*/
45
public function withEncoding(int $encoding): QueryStringRendererInterface
46
{
47
return new self($this->renderer->withEncoding($encoding));
48
}
49
50
/**
51
* @inheritDoc
52
*/
53
public function getSeparator(): string
54
{
55
return $this->renderer->getSeparator();
56
}
57
58
/**
59
* @inheritDoc
60
*/
61
public function withSeparator(?string $separator): QueryStringRendererInterface
62
{
63
return new self($this->renderer->withSeparator($separator));
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..