mirror of
https://github.com/elyby/php-code-style.git
synced 2025-05-31 14:12:05 +05:30
Fixes #10. Don't count string interpolation as a scope beginning
This commit is contained in:
@@ -180,6 +180,20 @@ return $c;',
|
||||
}
|
||||
',
|
||||
];
|
||||
yield [
|
||||
'<?php
|
||||
if ($condition) {
|
||||
$a = "Interpolation {$var}.";
|
||||
return true;
|
||||
}',
|
||||
];
|
||||
yield [
|
||||
'<?php
|
||||
if ($condition) {
|
||||
$a = "Deprecated interpolation ${var}.";
|
||||
return true;
|
||||
}',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user