Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[HttpClient] toArray is a bad and wrong name for json #32481

Copy link
Copy link
Closed
@zorn-v

Description

@zorn-v
Issue body actions

Imagine that I got true response from API. That method do it right and return PHP true (coz json_decode). But... TO ARRAY ? Is true IS ARRAY ? Or maybe 123 is array also ? 😄

Also someone want to get PHP object instead array (preferences).

Maybe one more method like getJson($throw = true, $asArray = true) and deprecate toArray ? 😸

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.