René's URL Explorer Experiment


Title: Add null to array_map() callback parameters of shorter arrays by SanderMuller · Pull Request #6874 · phpstan/phpstan-src · GitHub

Open Graph Title: Add null to array_map() callback parameters of shorter arrays by SanderMuller · Pull Request #6874 · phpstan/phpstan-src

X Title: Add null to array_map() callback parameters of shorter arrays by SanderMuller · Pull Request #6874 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Add null to array_map() callback parameters of shorter arrays by SanderMuller · Pull Request #6874 · phpstan/phpstan-src

Open Graph Description: With more than one array, array_map() calls the callback once per index of the longest array. Each shorter array gives null for the missing indexes: php -r 'var_dump(array_map(fn ($a, $b) =>...

X Description: With more than one array, array_map() calls the callback once per index of the longest array. Each shorter array gives null for the missing indexes: php -r 'var_dump(array_map(fn ($a, $b) =...

Opengraph URL: https://github.com/phpstan/phpstan-src/pull/6874

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:faf10482-e9a0-159b-547f-4c20bc26d3ca
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id96C0:31F9AC:4E4F4B:6D9296:6B0073D1
html-safe-nonce17a4716dad05628ea2a0b4248a210b74f29c3969767beaf4a17fc7ca883dcd1c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkMwOjMxRjlBQzo0RTRGNEI6NkQ5Mjk2OjZCMDA3M0QxIiwidmlzaXRvcl9pZCI6IjY1MDI5OTQ2NTU5MzA1MTIzMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc0d017fba21ef1837e90a93cf943d2e037e3a1085748981470bfe35982f4c3b2
hovercard-subject-tagpull_request:5055886050
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/phpstan/phpstan-src/6874/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/281d00ac1a3b7465acf0110205eb672cb1b38062975ae68c9c9ce2b0b7ac99e5/phpstan/phpstan-src/pull/6874
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/281d00ac1a3b7465acf0110205eb672cb1b38062975ae68c9c9ce2b0b7ac99e5/phpstan/phpstan-src/pull/6874
og:image:altWith more than one array, array_map() calls the callback once per index of the longest array. Each shorter array gives null for the missing indexes: php -r 'var_dump(array_map(fn ($a, $b) =>...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSanderMuller
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-cache
go-importgithub.com/phpstan/phpstan-src git https://github.com/phpstan/phpstan-src.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id219334214
octolytics-dimension-repository_nwophpstan/phpstan-src
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219334214
octolytics-dimension-repository_network_root_nwophpstan/phpstan-src
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
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6874#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6874
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%2Fphpstan%2Fphpstan-src%2Fpull%2F6874
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=phpstan%2Fphpstan-src
Reloadhttps://github.com/phpstan/phpstan-src/pull/6874
Reloadhttps://github.com/phpstan/phpstan-src/pull/6874
Reloadhttps://github.com/phpstan/phpstan-src/pull/6874
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests185 (185)https://github.com/phpstan/phpstan-src/pulls
Actionshttps://github.com/phpstan/phpstan-src/actions
Security and qualityhttps://github.com/phpstan/phpstan-src/security
Insightshttps://github.com/phpstan/phpstan-src/insights
https://github.com/phpstan/phpstan-src
staabmhttps://github.com/staabm
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
SanderMuller:array-map-null-paddinghttps://github.com/SanderMuller/phpstan-src/tree/array-map-null-padding
Conversationhttps://github.com/phpstan/phpstan-src/pull/6874
Commits3 (3)https://github.com/phpstan/phpstan-src/pull/6874/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6874/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6874/files
Add null to array_map() callback parameters of shorter arrayshttps://github.com/phpstan/phpstan-src/pull/6874#top
staabmhttps://github.com/staabm
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
SanderMuller:array-map-null-paddinghttps://github.com/SanderMuller/phpstan-src/tree/array-map-null-padding
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Oct 28, 2026https://github.com/phpstan/phpstan-src/pull/6874#issue-6085343010
phpstan/phpstan#13217https://github.com/phpstan/phpstan/issues/13217
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
force-pushedhttps://github.com/phpstan/phpstan-src/compare/04e7c926262825be36e2231b63ce3f06df7a87b4..d231b6d81a873c6dc6aa816da7e18f2ac7159e67
04e7c92https://github.com/phpstan/phpstan-src/commit/04e7c926262825be36e2231b63ce3f06df7a87b4
d231b6dhttps://github.com/phpstan/phpstan-src/commit/d231b6d81a873c6dc6aa816da7e18f2ac7159e67
Compare https://github.com/phpstan/phpstan-src/compare/04e7c926262825be36e2231b63ce3f06df7a87b4..d231b6d81a873c6dc6aa816da7e18f2ac7159e67
October 29, 2026 12:43https://github.com/phpstan/phpstan-src/pull/6874#event-34585136635
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5709684349
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
tests/PHPStan/Analyser/nsrt/bug-13217.phphttps://github.com/phpstan/phpstan-src/pull/6874/files#diff-b99ae45fab50dde8579bac9212ef15dc812ade3a260d2fd8d2f8a5a05f55314f
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4421665136
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://3v4l.org/QsHlT#vhttps://3v4l.org/QsHlT#v
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
SanderMullerhttps://github.com/SanderMuller
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4421729362
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4421916851
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
SanderMullerhttps://github.com/SanderMuller
Oct 31, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4432328975
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#15620https://github.com/phpstan/phpstan/issues/15620
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5709725297
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
src/Reflection/ArrayMapCallbackParameterTypes.phphttps://github.com/phpstan/phpstan-src/pull/6874/files#diff-ee114019a49178fdf469ab0c92b40cba1a6b4b7fd47a943ffb09b7f5746070fd
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5710005618
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
https://github.com/staabm
staabmhttps://github.com/staabm
VincentLanglethttps://github.com/VincentLanglet
October 30, 2026 08:49https://github.com/phpstan/phpstan-src/pull/6874#event-34673117558
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5710173853
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
tests/PHPStan/Analyser/nsrt/bug-13217.phphttps://github.com/phpstan/phpstan-src/pull/6874/files#diff-b99ae45fab50dde8579bac9212ef15dc812ade3a260d2fd8d2f8a5a05f55314f
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4422045694
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
SanderMullerhttps://github.com/SanderMuller
Oct 31, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4431740767
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5710197163
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
src/Reflection/ParametersAcceptorSelector.phphttps://github.com/phpstan/phpstan-src/pull/6874/files#diff-c3b9f9c6c2992760688d174886d5d1ef9b5d4d1097b1175d6d5af43f9dc92192
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4422063245
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4422077465
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
SanderMullerhttps://github.com/SanderMuller
Oct 31, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4431740913
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 30, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5710224988
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files
src/Analyser/ExprHandler/Helper/ContextualClosureParameterResolver.phphttps://github.com/phpstan/phpstan-src/pull/6874/files#diff-3f9ee9f8eea262a4d59a2cd7c8b1f429bd7cb794a2d812961be95b3a18fa3d25
staabmhttps://github.com/staabm
Oct 30, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4422084392
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
SanderMullerhttps://github.com/SanderMuller
Oct 31, 2026https://github.com/phpstan/phpstan-src/pull/6874#discussion_r4431741040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Oct 31, 2026https://github.com/phpstan/phpstan-src/pull/6874#issuecomment-6541665784
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Oct 31, 2026 https://github.com/phpstan/phpstan-src/pull/6874#pullrequestreview-5723152517
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6874/files/f4cde30dc80f91b52142ecc5538a7e6971bc6204
Unpacked args to array_map() and immediately invoked closures are typed as one value phpstan/phpstan#15619 https://github.com/phpstan/phpstan/issues/15619
Unpacked args to array_map() and immediately invoked closures are typed as one value phpstan/phpstan#15620 https://github.com/phpstan/phpstan/issues/15620
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
force-pushedhttps://github.com/phpstan/phpstan-src/compare/87c6971d18dee9514fdb8c3c42fe3e046b8111d6..7e26f84dc9a65aada9758adca0506903b9b1156b
87c6971https://github.com/phpstan/phpstan-src/commit/87c6971d18dee9514fdb8c3c42fe3e046b8111d6
7e26f84https://github.com/phpstan/phpstan-src/commit/7e26f84dc9a65aada9758adca0506903b9b1156b
Compare https://github.com/phpstan/phpstan-src/compare/87c6971d18dee9514fdb8c3c42fe3e046b8111d6..7e26f84dc9a65aada9758adca0506903b9b1156b
November 4, 2026 08:53https://github.com/phpstan/phpstan-src/pull/6874#event-35110715520
SanderMullerhttps://github.com/SanderMuller
November 8, 2026 07:32https://github.com/phpstan/phpstan-src/pull/6874#commits-pushed-46856d4
https://github.com/SanderMuller
https://github.com/claude
https://github.com/staabm
Add null to array_map() callback parameters of shorter arrayshttps://github.com/phpstan/phpstan-src/pull/6874/commits/46856d45d052951f1fbe2cd16a1ba90e292b889d
46856d4https://github.com/phpstan/phpstan-src/pull/6874/commits/46856d45d052951f1fbe2cd16a1ba90e292b889d
https://github.com/SanderMuller
https://github.com/claude
https://github.com/staabm
Do not assert the type of an unpacked array_map() arghttps://github.com/phpstan/phpstan-src/pull/6874/commits/9e921e594a2a98df1e304a659df348c042a9e30f
9e921e5https://github.com/phpstan/phpstan-src/pull/6874/commits/9e921e594a2a98df1e304a659df348c042a9e30f
https://github.com/SanderMuller
https://github.com/claude
https://github.com/staabm
Assert the native types of array_map() callback parametershttps://github.com/phpstan/phpstan-src/pull/6874/commits/f4cde30dc80f91b52142ecc5538a7e6971bc6204
f4cde30https://github.com/phpstan/phpstan-src/pull/6874/commits/f4cde30dc80f91b52142ecc5538a7e6971bc6204
https://github.com/staabm
staabmhttps://github.com/staabm
force-pushedhttps://github.com/phpstan/phpstan-src/compare/7e26f84dc9a65aada9758adca0506903b9b1156b..f4cde30dc80f91b52142ecc5538a7e6971bc6204
7e26f84https://github.com/phpstan/phpstan-src/commit/7e26f84dc9a65aada9758adca0506903b9b1156b
f4cde30https://github.com/phpstan/phpstan-src/commit/f4cde30dc80f91b52142ecc5538a7e6971bc6204
Compare https://github.com/phpstan/phpstan-src/compare/7e26f84dc9a65aada9758adca0506903b9b1156b..f4cde30dc80f91b52142ecc5538a7e6971bc6204
November 8, 2026 06:32https://github.com/phpstan/phpstan-src/pull/6874#event-35479672532
https://github.com/staabm
staabmhttps://github.com/staabm
6c8e7dbhttps://github.com/phpstan/phpstan-src/commit/6c8e7dbcf97ec0277fdc05e113419ad0a569317c
Nov 8, 2026https://github.com/phpstan/phpstan-src/pull/6874#event-35479675937
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 8, 2026https://github.com/phpstan/phpstan-src/pull/6874#issuecomment-6718274993
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Nov 11, 2026 https://github.com/phpstan/phpstan-src/pull/6874#ref-pullrequest-6331359624
Expand unpacked args into one value per array item #7038 https://github.com/phpstan/phpstan-src/pull/7038
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-src/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%2Fphpstan%2Fphpstan-src%2Fpull%2F6874
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/6874/files/6b00283910dfa680c9e9b95b12bc6c4751d68970
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/6874/files/f4cde30dc80f91b52142ecc5538a7e6971bc6204
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
Invalid second array value type in array_map https://github.com/phpstan/phpstan/issues/13217
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6874
https://github.com/SanderMuller
https://github.com/staabm
https://github.com/VincentLanglet
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.