Skip to content

Support chop() function as an alias of rtrim()#5157

Merged
staabm merged 1 commit intophpstan:2.1.xfrom
zonuexe:add/chop-as-trim-function
Mar 9, 2026
Merged

Support chop() function as an alias of rtrim()#5157
staabm merged 1 commit intophpstan:2.1.xfrom
zonuexe:add/chop-as-trim-function

Conversation

@zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Mar 9, 2026

It's now a minor alias, but can occasionally be found in legacy code.

See https://www.php.net/chop.

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

@zonuexe zonuexe changed the base branch from 2.2.x to 2.1.x March 9, 2026 09:38
@zonuexe zonuexe changed the title Add chop() function as an alias of rtrim() Support chop() function as an alias of rtrim() Mar 9, 2026
Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@staabm staabm requested a review from VincentLanglet March 9, 2026 10:37
@staabm staabm merged commit d32efcb into phpstan:2.1.x Mar 9, 2026
632 of 650 checks passed
@zonuexe zonuexe deleted the add/chop-as-trim-function branch March 9, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants