Closed LordSimal closed 1 year ago
I encountered this issue executing
bin/cake upgrade rector --rules cakephp50 /Users/kevinpfeifer/Documents/Sunlime/alfred/src
after I already converted some ->find() and ->get() calls to named params.
->find()
->get()
3) ../../../Sunlime/alfred/src/Queue/Task/ CheckLoginDataTask.php:38 ---------- begin diff ---------- @@ @@ $ftpLoginDataTable = $this->fetchTable('FtpLoginData'); try { /** @var \App\Model\Entity\FtpLoginData $loginDataEntry */ - $loginDataEntry = $ftpLoginDataTable->get($ftpLoginDataID, contain: [ - 'FtpDomains' => [ - 'ContentCategories' => ['ParentContentCategory'], - 'MetaCategories' => ['ParentMetaCategory'], - 'Deployments' => ['Vpns'], - ], + $loginDataEntry = $ftpLoginDataTable->get($ftpLoginDataID, FtpDomains: [ + 'ContentCategories' => ['ParentContentCategory'], + 'MetaCategories' => ['ParentMetaCategory'], + 'Deployments' => ['Vpns'], ]);
As you can see it doesn't detect already present named params.
I encountered this issue executing
after I already converted some
->find()
and->get()
calls to named params.As you can see it doesn't detect already present named params.