Skip to content

Commit 2a339cc

Browse files
committed
fix: access to an undefined property
phpstan: Model/Account.php line 193 Access to an undefined property UserBase\Client\Model\Account::$accountUser.
1 parent 486be6a commit 2a339cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Model/Account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public function getAccountUsers()
190190

191191
public function isAccountUser($userName)
192192
{
193-
foreach ($this->accountUser as $accountUser) {
194-
if ($this->accountUser->getUserName() == $userName) {
193+
foreach ($this->accountUsers as $accountUser) {
194+
if ($accountUser === $userName) {
195195
return true;
196196
}
197197
}

0 commit comments

Comments
 (0)