$this->post($this->serialize($proposal)) of type string is incompatible with the type integer expected by parameter $id of Dolibarr\Client\Domain\R...sourceId::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
40
return new ResourceId(/** @scrutinizer ignore-type */ $this->post($this->serialize($proposal)));
Loading history...
41
}
42
43
public function addProduct(ResourceId $proposalId, ProposalProduct $product)
44
{
45
return new ResourceId($this->post($this->serialize($product), [], $proposalId->getId().'/lines'));
$this->post($this->seria...Id->getId() . '/lines') of type string is incompatible with the type integer expected by parameter $id of Dolibarr\Client\Domain\R...sourceId::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
45
return new ResourceId(/** @scrutinizer ignore-type */ $this->post($this->serialize($product), [], $proposalId->getId().'/lines'));