Title: 1.3.16 throwing errors on arrays after assertCount · Issue #206 · phpstan/phpstan-phpunit · GitHub
Open Graph Title: 1.3.16 throwing errors on arrays after assertCount · Issue #206 · phpstan/phpstan-phpunit
X Title: 1.3.16 throwing errors on arrays after assertCount · Issue #206 · phpstan/phpstan-phpunit
Description: Our automated updates updated to 1.3.16 today and started failing phpstan. Based on the changes from 1.3.15 it's obvious what the issue is. Our tests do something like this: $mails = $this->getMails(); $this->assertCount(1, $mails); $mai...
Open Graph Description: Our automated updates updated to 1.3.16 today and started failing phpstan. Based on the changes from 1.3.15 it's obvious what the issue is. Our tests do something like this: $mails = $this->getMail...
X Description: Our automated updates updated to 1.3.16 today and started failing phpstan. Based on the changes from 1.3.15 it's obvious what the issue is. Our tests do something like this: $mails = $this->...
Opengraph URL: https://github.com/phpstan/phpstan-phpunit/issues/206
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"1.3.16 throwing errors on arrays after assertCount","articleBody":"Our automated updates updated to 1.3.16 today and started failing phpstan. Based on the [changes from 1.3.15 ](https://github.com/phpstan/phpstan-phpunit/compare/1.3.15...1.3.16) it's obvious what the issue is.\r\n\r\nOur tests do something like this:\r\n\r\n```\r\n $mails = $this->getMails();\r\n $this->assertCount(1, $mails);\r\n $mail = \\reset($mails);\r\n $this->assertStringContainsString('foo', $mail['subject']);\r\n```\r\n\r\nWhere `getMails` returns an array.\r\n\r\nAnd this is throwing errors like `Cannot access offset 'subject' on false.`","author":{"url":"https://github.com/acbramley","@type":"Person","name":"acbramley"},"datePublished":"2024-02-28T22:39:34Z","url":"https://github.com/phpstan/phpstan-phpunit/issues/206"}
| 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:14da7877-394c-bee7-d011-7a1be0408b46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B98C:1F4117:312670:44F367:6B006B5A |
| html-safe-nonce | 990884d15bb1e775b716b3bf3d134b0cab4587cbc7748768827fa4f990a0b9ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOThDOjFGNDExNzozMTI2NzA6NDRGMzY3OjZCMDA2QjVBIiwidmlzaXRvcl9pZCI6Ijg1ODk1NjU4ODgwMzI2OTcxNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c0bfc97ca6ffb0159711a9d4f10a90f2fbf81486d1a1a4324488ec8ee96dcd3 |
| hovercard-subject-tag | issue:2159997241 |
| 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/206/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f27a5621ca856d6be3d3e925a232f3b6f80a31e16db3f045b95e249dd0845cc/phpstan/phpstan-phpunit/issues/206 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f27a5621ca856d6be3d3e925a232f3b6f80a31e16db3f045b95e249dd0845cc/phpstan/phpstan-phpunit/issues/206 |
| og:image:alt | Our automated updates updated to 1.3.16 today and started failing phpstan. Based on the changes from 1.3.15 it's obvious what the issue is. Our tests do something like this: $mails = $this->getMail... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | acbramley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width