Return new Response class on Reflect->call() #7

Merged
Ghost merged 8 commits from refs/pull/7/head into master 2024-03-19 17:16:57 +01:00
Ghost commented 2023-10-02 11:53:17 +02:00 (Migrated from codeberg.org)

Reflect->call() will now return a Response class with properties and methods similar to JavaScript's Response object.

This will allow for things like:

Reflect->call("endpoint")->ok; // true

Reflect->call("endpoint")->json(); // [...array]

More documentation coming soon in a README.md update

`Reflect->call()` will now return a `Response` class with properties and methods similar to [JavaScript's Response object](https://developer.mozilla.org/en-US/docs/Web/API/Response). This will allow for things like: ```php Reflect->call("endpoint")->ok; // true Reflect->call("endpoint")->json(); // [...array] ``` More documentation coming soon in a README.md update
Sign in to join this conversation.
No description provided.