Incorrect Syntax in Documentation Code Example

Open Beginner friendly
#140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
php
Domain
documentation

Research direction

Open the linked PHP documentation page and find the “Adding members or moderators” code example. Check the channel member call shown there and correct the syntax to match the issue’s example. Done means the displayed PHP example uses the correct operator and remains readable in the rendered documentation.

Written by the indexing model from the issue text.

Description

The code example in the documentation seems incorrect. It should use -> instead of . like $channel->addMembers([...]).

https://getstream.io/chat/docs/php/?language=php#adding-members-or-moderators

Image

Dominant language
PHP
Stars
29
Forks
9
Avg merge
11h 38m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/stream-chat-php

All issues in GetStream/stream-chat-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.