Skip to content

Commit 5a02bfb

Browse files
minor #28673 [CS] Use combined assignment operators when possible (carusogabriel)
This PR was merged into the 2.8 branch. Discussion ---------- [CS] Use combined assignment operators when possible | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - <!-- required for new features --> Less opcodes for us 😄 Commits ------- c561e99394 [CS] Use combined assignment operators when possible
2 parents 976966b + 09a2449 commit 5a02bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Util/StringUtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testTrimUtf8Separators($hex)
3535

3636
// Convert UCS-2BE to UTF-8
3737
$symbol = mb_convert_encoding($binary, 'UTF-8', 'UCS-2BE');
38-
$symbol = $symbol."ab\ncd".$symbol;
38+
$symbol .= "ab\ncd".$symbol;
3939

4040
$this->assertSame("ab\ncd", StringUtil::trim($symbol));
4141
}

0 commit comments

Comments
 (0)