Skip to content

Commit 2275d3a

Browse files
mmollxalopp
authored andcommitted
take advantage of newer PHP version
1 parent 480aa62 commit 2275d3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MO4/Sniffs/Strings/VariableInDoubleQuotedStringSniff.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ public function process(File $phpcsFile, $stackPtr)
7373
preg_match_all($varRegExp, $content, $matches, PREG_OFFSET_CAPTURE);
7474

7575
foreach ($matches as $match) {
76-
foreach ($match as $info) {
77-
list($var, $pos) = $info;
78-
76+
foreach ($match as list($var, $pos)) {
7977
if ($pos === 1 || $content[($pos - 1)] !== '{') {
8078
if (strpos(substr($content, 0, $pos), '{') > 0
8179
&& strpos(substr($content, 0, $pos), '}') === false

0 commit comments

Comments
 (0)