I'm using [Codeception's wrapper](https://github.com/Codeception/Codeception/blob/2.5/src/Codeception/Util/Shared/Asserts.php#L448-L451) of [PHPUnit's `assertInternalType`](https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/Assert.php#L1677), and thought phpstan would understand the type. Example code: ```php $feedHandle = fopen('php://temp', 'rw+'); $this->assertInternalType('resource', $feedHandle); fwrite($feedHandle, $feed); ``` Actual result: ``` Parameter #1 $fp of function fwrite expects resource, resource|false given. ``` Expected result: -- Nothing --
I'm using Codeception's wrapper of PHPUnit's
assertInternalType, and thought phpstan would understand the type.Example code:
Actual result:
Expected result:
-- Nothing --