René's URL Explorer Experiment


Title: [FIX] Type Collection::map() and Cache::remember() return values by web-dev-passion · Pull Request #19670 · cakephp/cakephp · GitHub

Open Graph Title: [FIX] Type Collection::map() and Cache::remember() return values by web-dev-passion · Pull Request #19670 · cakephp/cakephp

X Title: [FIX] Type Collection::map() and Cache::remember() return values by web-dev-passion · Pull Request #19670 · cakephp/cakephp

Description: CakePHP: The Rapid Development Framework for PHP - Official Repository - [FIX] Type Collection::map() and Cache::remember() return values by web-dev-passion · Pull Request #19670 · cakephp/cakephp

Open Graph Description: Problem CollectionInterface::map() declares @return CollectionInterface<TKey, TValue>, which is the input element type, no matter what the callback returns. CollectionTrait::map() repeats it:...

X Description: Problem CollectionInterface::map() declares @return CollectionInterface&lt;TKey, TValue&gt;, which is the input element type, no matter what the callback returns. CollectionTrait::map() rep...

Opengraph URL: https://github.com/cakephp/cakephp/pull/19670

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ed1b1eed-6e69-db85-3fff-5c8a04e7bce5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA646:2723BB:AE8224:F09139:6AFD3D32
html-safe-nonced8c9fe91948e14db33eb4136f429e043f69f8c79029f04758a022314bdb553c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQ2OjI3MjNCQjpBRTgyMjQ6RjA5MTM5OjZBRkQzRDMyIiwidmlzaXRvcl9pZCI6Ijc5MDk0NjI1NjY5NDQ3MTgxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac143b4f44144e33a503c3a8e3ac575bfd1b8a2c426ac970213fc3afc607ec7178
hovercard-subject-tagpull_request:4798955754
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/cakephp/cakephp/19670/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2700441184f274d8a3b5f44c5fecdec8f6c75991dc3529efbc0a920b755c3910/cakephp/cakephp/pull/19670
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2700441184f274d8a3b5f44c5fecdec8f6c75991dc3529efbc0a920b755c3910/cakephp/cakephp/pull/19670
og:image:altProblem 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameweb-dev-passion
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-cache
go-importgithub.com/cakephp/cakephp git https://github.com/cakephp/cakephp.git
octolytics-dimension-user_id23666
octolytics-dimension-user_logincakephp
octolytics-dimension-repository_id656494
octolytics-dimension-repository_nwocakephp/cakephp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id656494
octolytics-dimension-repository_network_root_nwocakephp/cakephp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cakephp/cakephp/pull/19670#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcakephp%2Fcakephp%2Fpull%2F19670
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcakephp%2Fcakephp%2Fpull%2F19670
Sign uphttps://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
Reloadhttps://github.com/cakephp/cakephp/pull/19670
Reloadhttps://github.com/cakephp/cakephp/pull/19670
Reloadhttps://github.com/cakephp/cakephp/pull/19670
cakephphttps://github.com/cakephp
cakephphttps://github.com/cakephp/cakephp
Codehttps://github.com/cakephp/cakephp
Issues13 (13)https://github.com/cakephp/cakephp/issues
Pull requests16 (16)https://github.com/cakephp/cakephp/pulls
Actionshttps://github.com/cakephp/cakephp/actions
Projectshttps://github.com/cakephp/cakephp/projects
Wikihttps://github.com/cakephp/cakephp/wiki
Security and quality6 (6)https://github.com/cakephp/cakephp/security
Insightshttps://github.com/cakephp/cakephp/insights
https://github.com/cakephp/cakephp
web-dev-passionhttps://github.com/web-dev-passion
cakephp:5.nexthttps://github.com/cakephp/cakephp/tree/5.next
web-dev-passion:5.next-generic-map-rememberhttps://github.com/web-dev-passion/cakephp/tree/5.next-generic-map-remember
Conversationhttps://github.com/cakephp/cakephp/pull/19670
Commits3 (3)https://github.com/cakephp/cakephp/pull/19670/commits
Checkshttps://github.com/cakephp/cakephp/pull/19670/checks
Files changedhttps://github.com/cakephp/cakephp/pull/19670/files
[FIX] Type Collection::map() and Cache::remember() return valueshttps://github.com/cakephp/cakephp/pull/19670#top
web-dev-passionhttps://github.com/web-dev-passion
cakephp:5.nexthttps://github.com/cakephp/cakephp/tree/5.next
web-dev-passion:5.next-generic-map-rememberhttps://github.com/web-dev-passion/cakephp/tree/5.next-generic-map-remember
https://github.com/web-dev-passion
web-dev-passionhttps://github.com/web-dev-passion
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#issue-5776359510
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
CollectionInterface::map()https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L203
@return CollectionInterfacehttps://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.phphttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L199-L203
755aaechttps://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24
cakephp/src/Collection/CollectionTrait.phphttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L186-L191
755aaechttps://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24
map()https://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionInterface.php#L203
TMappedhttps://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.phphttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Collection/CollectionTrait.php#L815-L819
755aaechttps://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24
intermediate collection is now annotated explicitlyhttps://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 mixedhttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L583
$defaulthttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L579
cakephp/src/Cache/Cache.phphttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Cache/Cache.php#L579-L586
755aaechttps://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24
\Closure(): Thttps://github.com/cakephp/cakephp/blob/4a3cb2e280af0c57b1327030766bc9521c839809/src/Cache/Cache.php#L580
returns Thttps://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(): Thttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Lock/Lock.php#L256
cakephp/src/Lock/Lock.phphttps://github.com/cakephp/cakephp/blob/755aaec1fbe192156d77e7a8830e2660c278ca24/src/Lock/Lock.php#L249-L259
755aaechttps://github.com/cakephp/cakephp/commit/755aaec1fbe192156d77e7a8830e2660c278ca24
dereuromark's commenthttps://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 pagehttps://github.com/cakephp/cakephp/pull/19670
fix(types): type Collection::map() and Cache::remember() resultshttps://github.com/cakephp/cakephp/pull/19670/commits/4a3cb2e280af0c57b1327030766bc9521c839809
4a3cb2ehttps://github.com/cakephp/cakephp/pull/19670/commits/4a3cb2e280af0c57b1327030766bc9521c839809
https://github.com/dereuromark
dereuromarkhttps://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-passionhttps://github.com/web-dev-passion
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#issuecomment-6079331527
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
chore(types): drop unneeded phpcs:ignore in nest()https://github.com/cakephp/cakephp/pull/19670/commits/35edf4faa248f2f78e2ee4f796e9fbf594394255
35edf4fhttps://github.com/cakephp/cakephp/pull/19670/commits/35edf4faa248f2f78e2ee4f796e9fbf594394255
https://github.com/dereuromark
dereuromarkhttps://github.com/dereuromark
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#issuecomment-6079420858
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
https://github.com/dereuromark
dereuromarkhttps://github.com/dereuromark
5.5.0https://github.com/cakephp/cakephp/milestone/357
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#event-32871892283
https://github.com/dereuromark
dereuromarkhttps://github.com/dereuromark
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#issuecomment-6080333052
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
fix(types): type Collection::through() resulthttps://github.com/cakephp/cakephp/pull/19670/commits/eba3a74f1acb49fe5aa5b559eb58421f57778790
eba3a74https://github.com/cakephp/cakephp/pull/19670/commits/eba3a74f1acb49fe5aa5b559eb58421f57778790
https://github.com/web-dev-passion
web-dev-passionhttps://github.com/web-dev-passion
Oct 9, 2026https://github.com/cakephp/cakephp/pull/19670#issuecomment-6080652104
@dereuromarkhttps://github.com/dereuromark
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
https://github.com/dereuromark
dereuromarkhttps://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
markstoryhttps://github.com/markstory
Oct 15, 2026https://github.com/cakephp/cakephp/pull/19670#issuecomment-6183330522
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
https://github.co/hiddenchars
https://github.com/cakephp/cakephp/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/cakephp/cakephp/pull/19670
5.5.0 https://github.com/cakephp/cakephp/milestone/357
Please reload this pagehttps://github.com/cakephp/cakephp/pull/19670
https://github.com/web-dev-passion
https://github.com/dereuromark
https://github.com/markstory
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.