Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Php55] Handle crash on curly parentheses delimiter on PregReplaceEModifierRector #3144

Merged
merged 21 commits into from
Dec 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add failing fixture e inside regex not as modifier
samsonasik committed Dec 3, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 27a6d4c9894e6e7afb7539b8711ae9aab8c0a6b6
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Rector\Tests\Php55\Rector\FuncCall\PregReplaceEModifierRector\Fixture;

function clean_link($a)
{
return "change";
}

function run($str)
{
$eval_links = '$link = clean_link("$0")';

return preg_replace('{test}i',"$eval_links",$str);
}