jolicode/slack-php-api

Example has syntax error

Closed this issue ยท 3 comments

Stumbled upon this part in the documentation:

for ($client->iterateUsersList() as $user) {
    $userNames[] = $user->getName();
}

which should probably be:

foreach ($client->iterateUsersList() as $user) {
    $userNames[] = $user->getName();
}

Good catch @binoculars88 ๐Ÿ˜…. Do you want to fix the code in the documentation (It's located inside the docs directory of this repository)?

Thanks, PR merged ๐Ÿ‘