Skip to content

Conversation

@samsonasik
Copy link
Member

Reverts #6901

@JohJohan I am reverting your PR due to if it needs apply, the following code may need change and take a look as well to be adapted.

if ($this->isName($funcCall->name, 'strpos') && ! $this->isIntegerZero($secondArg->value)) {
$funcCall->args[0] = new Arg($this->nodeFactory->createFuncCall(
'substr',
[$funcCall->args[0], $secondArg]
));
}

to avoid regression.

@samsonasik samsonasik enabled auto-merge (squash) May 14, 2025 22:46
@samsonasik samsonasik merged commit 5d34b43 into main May 14, 2025
45 checks passed
@samsonasik samsonasik deleted the revert-6901-StrContainsRector branch May 14, 2025 22:46
@github-actions
Copy link
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 Nov 29, 2025
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.

2 participants