jolicode / slack-php-api

:hash: PHP Slack Client based on the official OpenAPI specification
https://jolicode.github.io/slack-php-api/
MIT License
221 stars 54 forks source link

Example has syntax error #123

Closed binoculars88 closed 3 years ago

binoculars88 commented 3 years ago

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();
}
pyrech commented 3 years ago

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

binoculars88 commented 3 years ago

@pyrech sure! Here you go.

pyrech commented 3 years ago

Thanks, PR merged 👍