Title: assertInternalType() · Issue #34 · phpstan/phpstan-phpunit · GitHub
Open Graph Title: assertInternalType() · Issue #34 · phpstan/phpstan-phpunit
X Title: assertInternalType() · Issue #34 · phpstan/phpstan-phpunit
Description: I'm using Codeception's wrapper of PHPUnit's assertInternalType, and thought phpstan would understand the type. Example code: $feedHandle = fopen('php://temp', 'rw+'); $this->assertInternalType('resource', $feedHandle); fwrite($feedHandl...
Open Graph Description: I'm using Codeception's wrapper of PHPUnit's assertInternalType, and thought phpstan would understand the type. Example code: $feedHandle = fopen('php://temp', 'rw+'); $this->assertInternalType('re...
X Description: I'm using Codeception's wrapper of PHPUnit's assertInternalType, and thought phpstan would understand the type. Example code: $feedHandle = fopen('php://temp', 'rw+'); $...
Opengraph URL: https://github.com/phpstan/phpstan-phpunit/issues/34
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"assertInternalType()","articleBody":"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.\r\n\r\nExample code:\r\n```php\r\n$feedHandle = fopen('php://temp', 'rw+');\r\n$this->assertInternalType('resource', $feedHandle);\r\nfwrite($feedHandle, $feed);\r\n```\r\n\r\nActual result:\r\n```\r\nParameter #1 $fp of function fwrite expects resource, resource|false given.\r\n```\r\n\r\nExpected result:\r\n-- Nothing --","author":{"url":"https://github.com/josephzidell","@type":"Person","name":"josephzidell"},"datePublished":"2018-12-25T15:55:23Z","url":"https://github.com/phpstan/phpstan-phpunit/issues/34"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:959ac029-1c0b-c57a-87df-4c2fb0cf5801 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D256:1ED25A:1AEA84:24EE74:6B00661E |
| html-safe-nonce | 5cfbd11e24e8b8d7e7a194a9c1e2f452da05eb981b6757359d2bf6d5a09cec3f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjU2OjFFRDI1QToxQUVBODQ6MjRFRTc0OjZCMDA2NjFFIiwidmlzaXRvcl9pZCI6IjY2MDEyOTc5ODc2NjA0NDExMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 78f12277c035c37c49bb3cea6e77bb7df10df15960c85acd4d5f29d067ee32fd |
| hovercard-subject-tag | issue:394444316 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpstan/phpstan-phpunit/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf65da20243f63ba18eb780f2d5741fbc64e8198f9a769ff9d3806b0c9f45c54/phpstan/phpstan-phpunit/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf65da20243f63ba18eb780f2d5741fbc64e8198f9a769ff9d3806b0c9f45c54/phpstan/phpstan-phpunit/issues/34 |
| og:image:alt | I'm using Codeception's wrapper of PHPUnit's assertInternalType, and thought phpstan would understand the type. Example code: $feedHandle = fopen('php://temp', 'rw+'); $this->assertInternalType('re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | josephzidell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/phpstan/phpstan-phpunit git https://github.com/phpstan/phpstan-phpunit.git |
| octolytics-dimension-user_id | 16435710 |
| octolytics-dimension-user_login | phpstan |
| octolytics-dimension-repository_id | 105883921 |
| octolytics-dimension-repository_nwo | phpstan/phpstan-phpunit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105883921 |
| octolytics-dimension-repository_network_root_nwo | phpstan/phpstan-phpunit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width