Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently the JsonApi is heavily used with methods `forEndpoint` and `forResource`, these method set their respective properties, which have no value initially. When instantiating the class, an "cannot access before initialization" error because there's no default. ``` Typed property Flarum\Api\JsonApi::$endpointName must not be accessed before initialization ```
- Loading branch information