Feature: Http Resource types Illuminate\Http\Resources have type support Background: Given I have the following config """ """ And I have the following code preamble """ $this->resource->id, ]; } } """ Scenario: Resources can declare wrap Given I have the following code """ class UserController { public function __construct() { UserResource::$wrap = 'items'; } public function show(User $user): UserResource { return new UserResource($user); } } """ When I run Psalm Then I see no errors