| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ed1b1eed-6e69-db85-3fff-5c8a04e7bce5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A646:2723BB:AE8224:F09139:6AFD3D32 |
| html-safe-nonce | d8c9fe91948e14db33eb4136f429e043f69f8c79029f04758a022314bdb553c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQ2OjI3MjNCQjpBRTgyMjQ6RjA5MTM5OjZBRkQzRDMyIiwidmlzaXRvcl9pZCI6Ijc5MDk0NjI1NjY5NDQ3MTgxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 143b4f44144e33a503c3a8e3ac575bfd1b8a2c426ac970213fc3afc607ec7178 |
| hovercard-subject-tag | pull_request:4798955754 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/cakephp/cakephp/19670/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/2700441184f274d8a3b5f44c5fecdec8f6c75991dc3529efbc0a920b755c3910/cakephp/cakephp/pull/19670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2700441184f274d8a3b5f44c5fecdec8f6c75991dc3529efbc0a920b755c3910/cakephp/cakephp/pull/19670 |
| og:image:alt | Problem
CollectionInterface::map() declares @return CollectionInterface<TKey, TValue>, which is the input element type, no matter what the callback returns. CollectionTrait::map() repeats it:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | web-dev-passion |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-cache |
| go-import | github.com/cakephp/cakephp git https://github.com/cakephp/cakephp.git |
| octolytics-dimension-user_id | 23666 |
| octolytics-dimension-user_login | cakephp |
| octolytics-dimension-repository_id | 656494 |
| octolytics-dimension-repository_nwo | cakephp/cakephp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 656494 |
| octolytics-dimension-repository_network_root_nwo | cakephp/cakephp |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/cakephp/cakephp/pull/19670#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcakephp%2Fcakephp%2Fpull%2F19670 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcakephp%2Fcakephp%2Fpull%2F19670 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=cakephp%2Fcakephp |
| Reload | https://github.com/cakephp/cakephp/pull/19670 |
| Reload | https://github.com/cakephp/cakephp/pull/19670 |
| Reload | https://github.com/cakephp/cakephp/pull/19670 |
| cakephp | https://github.com/cakephp |
| cakephp | https://github.com/cakephp/cakephp |
| Code | https://github.com/cakephp/cakephp |
| Issues13 (13) | https://github.com/cakephp/cakephp/issues |
| Pull requests16 (16) | https://github.com/cakephp/cakephp/pulls |
| Actions | https://github.com/cakephp/cakephp/actions |
| Projects | https://github.com/cakephp/cakephp/projects |
| Wiki | https://github.com/cakephp/cakephp/wiki |
| Security and quality6 (6) | https://github.com/cakephp/cakephp/security |
| Insights | https://github.com/cakephp/cakephp/insights |
| https://github.com/cakephp/cakephp |
| web-dev-passion | https://github.com/web-dev-passion |
| cakephp:5.next | https://github.com/cakephp/cakephp/tree/5.next |
| web-dev-passion:5.next-generic-map-remember | https://github.com/web-dev-passion/cakephp/tree/5.next-generic-map-remember |
| Conversation | https://github.com/cakephp/cakephp/pull/19670 |
| Commits3 (3) | https://github.com/cakephp/cakephp/pull/19670/commits |
| Checks | https://github.com/cakephp/cakephp/pull/19670/checks |
| Files changed | https://github.com/cakephp/cakephp/pull/19670/files |
| [FIX] Type Collection::map() and Cache::remember() return values | https://github.com/cakephp/cakephp/pull/19670#top |
| web-dev-passion | https://github.com/web-dev-passion |
| cakephp:5.next | https://github.com/cakephp/cakephp/tree/5.next |
| web-dev-passion:5.next-generic-map-remember | https://github.com/web-dev-passion/cakephp/tree/5.next-generic-map-remember |
|
| https://github.com/web-dev-passion |
| web-dev-passion | https://github.com/web-dev-passion |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#issue-5776359510 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| CollectionInterface::map() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L203 |
| @return CollectionInterface | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L201 |
| CollectionTrait::map() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L188 |
| cakephp/src/Collection/CollectionInterface.php | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L199-L203 |
| 755aaec | https://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24 |
| cakephp/src/Collection/CollectionTrait.php | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L186-L191 |
| 755aaec | https://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24 |
| map() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L203 |
| TMapped | https://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Collection/CollectionInterface.php#L199-L204 |
| nest() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L775 |
| cakephp/src/Collection/CollectionTrait.php | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L815-L819 |
| 755aaec | https://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24 |
| intermediate collection is now annotated explicitly | https://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Collection/CollectionTrait.php#L817-L822 |
| Cache::remember() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L586 |
| returns mixed | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L583 |
| $default | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L579 |
| cakephp/src/Cache/Cache.php | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L579-L586 |
| 755aaec | https://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24 |
| \Closure(): T | https://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Cache/Cache.php#L580 |
| returns T | https://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Cache/Cache.php#L584 |
| Lock::synchronized() | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Lock/Lock.php#L259 |
| \Closure(): T | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Lock/Lock.php#L256 |
| cakephp/src/Lock/Lock.php | https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Lock/Lock.php#L249-L259 |
| 755aaec | https://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24 |
| dereuromark's comment | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6080333052 |
| nest() | https://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Collection/CollectionTrait.php#L817-L822 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| fix(types): type Collection::map() and Cache::remember() results | https://github.com/cakephp/cakephp/pull/19670/commits/4a3cb2e280af0c57b1327030766bc9521c839809 |
| 4a3cb2e | https://github.com/cakephp/cakephp/pull/19670/commits/4a3cb2e280af0c57b1327030766bc9521c839809 |
| https://github.com/dereuromark |
| dereuromark | https://github.com/dereuromark |
|
Oct 9, 2026
| https://github.com/cakephp/cakephp/pull/19670#pullrequestreview-5468700345 |
|
View reviewed changes
| https://github.com/cakephp/cakephp/pull/19670/files/4a3cb2e280af0c57b1327030766bc9521c839809 |
| https://github.com/web-dev-passion |
| web-dev-passion | https://github.com/web-dev-passion |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6079331527 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| chore(types): drop unneeded phpcs:ignore in nest() | https://github.com/cakephp/cakephp/pull/19670/commits/35edf4faa248f2f78e2ee4f796e9fbf594394255 |
| 35edf4f | https://github.com/cakephp/cakephp/pull/19670/commits/35edf4faa248f2f78e2ee4f796e9fbf594394255 |
| https://github.com/dereuromark |
| dereuromark | https://github.com/dereuromark |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6079420858 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| https://github.com/dereuromark |
| dereuromark | https://github.com/dereuromark |
| 5.5.0 | https://github.com/cakephp/cakephp/milestone/357 |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#event-32871892283 |
| https://github.com/dereuromark |
| dereuromark | https://github.com/dereuromark |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6080333052 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| fix(types): type Collection::through() result | https://github.com/cakephp/cakephp/pull/19670/commits/eba3a74f1acb49fe5aa5b559eb58421f57778790 |
| eba3a74 | https://github.com/cakephp/cakephp/pull/19670/commits/eba3a74f1acb49fe5aa5b559eb58421f57778790 |
| https://github.com/web-dev-passion |
| web-dev-passion | https://github.com/web-dev-passion |
| Oct 9, 2026 | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6080652104 |
| @dereuromark | https://github.com/dereuromark |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| https://github.com/dereuromark |
| dereuromark | https://github.com/dereuromark |
|
Oct 9, 2026
| https://github.com/cakephp/cakephp/pull/19670#ref-pullrequest-5777912878 |
|
Fix PHPDoc types that do not match runtime behavior
#19674
| https://github.com/cakephp/cakephp/pull/19674 |
| https://github.com/markstory |
| markstory | https://github.com/markstory |
| Oct 15, 2026 | https://github.com/cakephp/cakephp/pull/19670#issuecomment-6183330522 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
| https://github.co/hiddenchars |
| https://github.com/cakephp/cakephp/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcakephp%2Fcakephp%2Fpull%2F19670 |
|
| https://github.com/dereuromark |
|
dereuromark
| https://github.com/dereuromark |
|
| https://github.com/cakephp/cakephp/pull/19670/files/4a3cb2e280af0c57b1327030766bc9521c839809 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
|
5.5.0
| https://github.com/cakephp/cakephp/milestone/357 |
| Please reload this page | https://github.com/cakephp/cakephp/pull/19670 |
|
| https://github.com/web-dev-passion |
|
| https://github.com/dereuromark |
|
| https://github.com/markstory |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |