From f3930bd15e68fe6a6e3821b87c5ac0654a0b9bc8 Mon Sep 17 00:00:00 2001 From: nook24 Date: Thu, 31 Aug 2023 09:58:11 +0200 Subject: [PATCH] Declare class properties for php 8.2 --- src/AclExtras.php | 7 +++++++ src/Adapter/IniAcl.php | 7 +++++++ src/Model/Table/PermissionsTable.php | 7 ++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/AclExtras.php b/src/AclExtras.php index 52060214..23139c5d 100644 --- a/src/AclExtras.php +++ b/src/AclExtras.php @@ -42,6 +42,13 @@ class AclExtras */ public $Acl; + /** + * Aco object + * + * @var string + */ + public $Aco; + /** * Contains arguments parsed from the command line. * diff --git a/src/Adapter/IniAcl.php b/src/Adapter/IniAcl.php index 99bbad52..005ac81a 100644 --- a/src/Adapter/IniAcl.php +++ b/src/Adapter/IniAcl.php @@ -45,6 +45,13 @@ class IniAcl implements AclInterface */ protected $_defaultConfig = []; + /** + * Active config for this class + * + * @var array + */ + private $options = []; + /** * Constructor * diff --git a/src/Model/Table/PermissionsTable.php b/src/Model/Table/PermissionsTable.php index 4549be46..f4598f7d 100644 --- a/src/Model/Table/PermissionsTable.php +++ b/src/Model/Table/PermissionsTable.php @@ -32,6 +32,11 @@ class PermissionsTable extends AclNodesTable private ArosTable $Aro; private AcosTable $Aco; + /** + * @var int + */ + private $id; + /** * {@inheritDoc} * @@ -204,7 +209,7 @@ public function allow($aro, $aco, $actions = '*', $value = 1) $save[$action] = $value; } } - list($save['aro_id'], $save['aco_id']) = [$perms['aro'], $perms['aco']]; + [$save['aro_id'], $save['aco_id']] = [$perms['aro'], $perms['aco']]; if ($perms['link'] && !empty($perms['link'][$alias])) { $save['id'] = $perms['link'][$alias][0]['id'];