Feature: Request getContent Symfony Request has getContent method on which return type changes based on argument Background: Given I have the following config """ """ Scenario: Asserting '$request->getContent()' without any argument returns string Given I have the following code """ getContent()); } } """ When I run Psalm Then I see no errors Scenario: Asserting '$request->getContent(false)' returns string Given I have the following code """ getContent(false)); } } """ When I run Psalm Then I see no errors Scenario: Asserting '$request->getContent(true)' returns resource Given I have the following code """ getContent(true)); } } """ When I run Psalm Then I see these errors | Type | Message | | InvalidArgument | Argument 1 of json_decode expects string, resource provided |