From 73ab0e5e62c3c28c2a7dec75360c4ef164936915 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 3 Jun 2026 17:15:29 +0300 Subject: [PATCH 1/3] Fix CakePHP deprecation: use named args for find('list') in UpgradeCommand --- app/src/Command/UpgradeCommand.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/Command/UpgradeCommand.php b/app/src/Command/UpgradeCommand.php index 307f14dbf..408c5e374 100644 --- a/app/src/Command/UpgradeCommand.php +++ b/app/src/Command/UpgradeCommand.php @@ -427,12 +427,12 @@ protected function cacheEnvSourcespMode(): void { $EnvSourcesTable = $this->getTableLocator()->get('EnvSource.EnvSources'); - $this->EnvSourceSpMode = $EnvSourcesTable->find('list', [ - 'keyField' => 'id', - 'valueField' => 'sp_mode' - ]) - ->applyOptions(['archived' => true]) - ->toArray(); + $this->EnvSourceSpMode = $EnvSourcesTable->find('list', + keyField: 'id', + valueField: 'sp_mode' + ) + ->applyOptions(['archived' => true]) + ->toArray(); } /** From 314ecdf068a785c976f1be52de855decbaf5e600 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 3 Jun 2026 18:23:20 +0300 Subject: [PATCH 2/3] Fix deprecation: use named args for GroupsTable::get() in provisioning --- app/src/Model/Table/GroupsTable.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/Model/Table/GroupsTable.php b/app/src/Model/Table/GroupsTable.php index 0a1adf207..e8b17dd8a 100644 --- a/app/src/Model/Table/GroupsTable.php +++ b/app/src/Model/Table/GroupsTable.php @@ -1021,14 +1021,11 @@ public function localAfterSave(EventInterface $event, EntityInterface $entity, \ public function marshalProvisioningData(int $id): array { $ret = []; - $ret['data'] = $this->get($id, [ + $ret['data'] = $this->get($id, // We need archives for handling deleted records - 'archived' => true, - 'contain' => [ - 'GroupMembers', - 'Identifiers' - ] - ]); + archived: true, + contain: ['GroupMembers', 'Identifiers'] + ); // Provisioning Eligibility is // - Deleted if the changelog deleted flag is true From 03426fea4c5ef2c1ab8bffb3f98d70c2df49ed2d Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 3 Jun 2026 19:13:54 +0300 Subject: [PATCH 3/3] fix deprecation warning --- app/src/Command/UpgradeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Command/UpgradeCommand.php b/app/src/Command/UpgradeCommand.php index 408c5e374..b1f827335 100644 --- a/app/src/Command/UpgradeCommand.php +++ b/app/src/Command/UpgradeCommand.php @@ -482,7 +482,7 @@ protected function buildGroupTree() { // as a whole, so we only need to run this once. $GroupsTable = $this->getTableLocator()->get('Groups'); - $GroupsTable->recover(); + $GroupsTable->getBehavior('Tree')->recover(); } /**