Skip to content

presence: Fix get_by_key documentation and typespec inconsistencies#6719

Open
wondr-wclabs wants to merge 1 commit into
phoenixframework:mainfrom
wondr-wclabs:fix-presence-get-by-key-docs
Open

presence: Fix get_by_key documentation and typespec inconsistencies#6719
wondr-wclabs wants to merge 1 commit into
phoenixframework:mainfrom
wondr-wclabs:fix-presence-get-by-key-docs

Conversation

@wondr-wclabs

Copy link
Copy Markdown

Fixes #5759 and #4514. The get_by_key/2 function was incorrectly documented as returning a list of maps, and the typespec reflected this, but the implementation actually returns a map (or an empty list if not found). This PR updates the typespec and example in the documentation to accurately match the implementation without introducing breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phoenix.Presence.get_by_key/2 typespec, return values, and documentation are inconsistent

1 participant