From c40e338be10fb85dee9508d79dd2e9fa2a9cef49 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 24 Jun 2023 15:45:58 -0700 Subject: [PATCH] (NFC) SecurityTest - Apply the changes that PHPStorm yearns for --- .../tests/phpunit/Civi/Standalone/SecurityTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php b/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php index 76febf2141..e1a63e4f1c 100644 --- a/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php +++ b/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php @@ -56,7 +56,7 @@ class SecurityTest extends \PHPUnit\Framework\TestCase implements HeadlessInterf } public function testCreateUser():void { - list($contactID, $userID, $security) = $this->createFixtureContactAndUser(); + [$contactID, $userID, $security] = $this->createFixtureContactAndUser(); $user = \Civi\Api4\User::get(FALSE) ->addSelect('*', 'uf_match.*') @@ -73,7 +73,7 @@ class SecurityTest extends \PHPUnit\Framework\TestCase implements HeadlessInterf } public function testPerms() { - list($contactID, $userID, $security) = $this->createFixtureContactAndUser(); + [$contactID, $userID, $security] = $this->createFixtureContactAndUser(); // Create role, $roleID = \Civi\Api4\Role::create(FALSE) ->setValues(['name' => 'staff'])->execute()->first()['id']; -- 2.25.1