Skip to content

Conversation

@binaryk
Copy link
Collaborator

@binaryk binaryk commented Aug 20, 2025

Added

allow returning array from the index method

@what-the-diff
Copy link

what-the-diff bot commented Aug 20, 2025

PR Summary

  • Updated the 'index' method to accept a new parameter
    The team has updated the 'index' function in our code. It can now take an additional parameter, named $toArray. What this means is that we have more control and flexibility when using this method.

  • Changes in Return Logic based on the new parameter
    We've also shifted how this function behaves when it finishes executing, contingent upon the value of the $toArray parameter:

    • If $toArray is set to true (yes), the function will now give us the outcome from a process we call 'filtering'.
    • If not, it's going to deliver a response in a format called JSON, which holds the filtered results. This could be useful when we want the results prepared in a way that's easy for other systems to understand and use.

@binaryk binaryk merged commit b732bd1 into 9.x Aug 20, 2025
1 of 49 checks passed
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.

2 participants