bobdenotter / conimex

🍛 Content Importer and Exporter (as YAML) for Bolt 4
MIT License
6 stars 14 forks source link

Bolt\Repository\RelationRepository::findRelations() must be of the type int or null, bool given #34

Closed Mikescops closed 3 years ago

Mikescops commented 3 years ago

Importing from 3.7 i get the following error:

image

Blame is on this line: https://github.com/bobdenotter/conimex/blob/master/src/Import.php#L348

Indeed the constructor for findRelations is

public function findRelations(Content $from, ?string $name, ?int $limit = null, bool $publishedOnly = true)

and we have

$currentRelations = $this->relationRepository->findRelations($content, null, true, null, false);

so moving to

$currentRelations = $this->relationRepository->findRelations($content, null, null, false);

solves it.