mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Don’t double-quote string
This commit is contained in:
parent
3eb027d371
commit
21001668df
@ -474,10 +474,10 @@ class Context
|
||||
foreach ($clauses as $clause) {
|
||||
\Psalm\Type\Algebra::calculateNegation($clause);
|
||||
|
||||
$quoted_remove_var_id = preg_quote($remove_var_id);
|
||||
$quoted_remove_var_id = preg_quote($remove_var_id, '/');
|
||||
|
||||
foreach ($clause->possibilities as $var_id => $_) {
|
||||
if (preg_match('/' . preg_quote($quoted_remove_var_id, '/') . '[\]\[\-]/', $var_id)) {
|
||||
if (preg_match('/' . $quoted_remove_var_id . '[\]\[\-]/', $var_id)) {
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user