Skip to content

fix(request): call core-api's inputArray instead of array - #11

Closed
roncodes wants to merge 1 commit into
release/v0.1.0from
fix/request-input-array
Closed

roncodes wants to merge 1 commit into
release/v0.1.0from
fix/request-input-array

Conversation

@roncodes

@roncodes roncodes commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

Calls core-api's inputArray() instead of array() (1 file changed, 1 insertion(+), 1 deletion(-)).

Laravel 11+ ships a native Request::array(), and native methods win over macros. On Laravel 12, core-api's comma-splitting macro silently stops running, so ?sort=a,b style parameters become one value. In the spike, GET /int/v1/places?sort=-created_at,name returned 500 on Laravel 12 and 200 on Laravel 10. The macro body is unchanged, so there's no behaviour change.

Testing

Local on Laravel 10, against core-api's rename branch: 108 passed. OidcResponse::array() is unrelated and unchanged.

Merge order

Needs a core-api release containing fleetbase/core-api#331. Until then, CI resolving the released core-api has no inputArray macro.

Laravel 11+ ships a native Request::array(), which wins over core-api's macro of that
name and stops it splitting comma-separated values. Needs core-api with inputArray.
@roncodes

roncodes commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

Superseded by #12, which contains this branch's commits. Closing without merging: on its own this resolves against Laravel 10, which Composer 2.11 now refuses. The branch is kept.

@roncodes roncodes closed this Nov 6, 2026
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.

1 participant