Skip to content

[DeadCode] skip Ds\Map::get() on RemoveNullArgOnNullDefaultParamRector#7665

Merged
TomasVotruba merged 1 commit intomainfrom
skip-ds-map-get
Nov 25, 2025
Merged

[DeadCode] skip Ds\Map::get() on RemoveNullArgOnNullDefaultParamRector#7665
TomasVotruba merged 1 commit intomainfrom
skip-ds-map-get

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Fixes rectorphp/rector#9509
Ref https://getrector.com/demo/1fb51b20-1659-4f28-8218-69303f089dac
Ref https://www.php.net/manual/en/ds-map.get.php

If no default value is given, instead of returning null, it get an OutOfBoundsException

@samsonasik
Copy link
Copy Markdown
Member Author

Fixed 🎉 /cc @uncaught

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready 👍

@TomasVotruba TomasVotruba merged commit fa54d46 into main Nov 25, 2025
54 checks passed
@TomasVotruba
Copy link
Copy Markdown
Member

👍

@TomasVotruba TomasVotruba deleted the skip-ds-map-get branch November 25, 2025 09:12
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RemoveNullArgOnNullDefaultParamRector removes default argument from Ds\Map::get()

2 participants