Skip to content

Conversation

@JohJohan
Copy link
Contributor

No description provided.

@samsonasik
Copy link
Member

Let's give it a try, thank you @JohJohan

@samsonasik samsonasik merged commit 5814187 into rectorphp:main May 14, 2025
45 checks passed
@samsonasik
Copy link
Member

@JohJohan oh, the code then need to change with new code:

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

I am going to revert this first, ensure no regression...

@samsonasik
Copy link
Member

@JohJohan I am reverting at #6903

@JohJohan JohJohan deleted the StrContainsRector branch May 15, 2025 06:47
@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