Closed
Description
Hi,
I have this code :
$content = $client->getResponse()->getContent();
$this->assertIsString($content);
$this->assertJson($content);
phpstan throws an error:
Parameter #1 $actualJson of method PHPUnit\Framework\Assert::assertJson() expects string, string|false given.
I expect that phpstan understand that if assertIsString($content)
passed, $content
is a string, and phpstan should not throw an error.
My composer file:
"require-dev": {
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
[...]
}
Metadata
Metadata
Assignees
Labels
No labels