Skip to content

Commit ff43c7b

Browse files
committed
Merge branch '2.12' into 2.14
# Conflicts: # tests/Fixer/Alias/NoAliasFunctionsFixerTest.php
2 parents a4f2e4c + 962c2aa commit ff43c7b

File tree

151 files changed

+1054
-1054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1054
-1054
lines changed

src/Console/Output/ErrorOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function listErrors($process, array $errors)
6565
$message = $e->getMessage();
6666
$code = $e->getCode();
6767
if (0 !== $code) {
68-
$message .= " (${code})";
68+
$message .= " ({$code})";
6969
}
7070

7171
$length = max(\strlen($class), \strlen($message));

src/DocBlock/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function setName($name)
9494
throw new \RuntimeException('Cannot set name on unknown tag.');
9595
}
9696

97-
$this->line->setContent(Preg::replace("/@${current}/", "@${name}", $this->line->getContent(), 1));
97+
$this->line->setContent(Preg::replace("/@{$current}/", "@{$name}", $this->line->getContent(), 1));
9898

9999
$this->name = $name;
100100
}

src/Fixer/ControlStructure/NoBreakCommentFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private function isNoBreakComment(Token $token)
184184

185185
$text = preg_quote($this->configuration['comment_text'], '~');
186186

187-
return 1 === Preg::match("~^((//|#)\\s*${text}\\s*)|(/\\*\\*?\\s*${text}\\s*\\*/)$~i", $token->getContent());
187+
return 1 === Preg::match("~^((//|#)\\s*{$text}\\s*)|(/\\*\\*?\\s*{$text}\\s*\\*/)$~i", $token->getContent());
188188
}
189189

190190
/**

src/Fixer/PhpUnit/PhpUnitInternalClassFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function createDocBlock(Tokens $tokens, $docBlockIndex)
132132
$lineEnd = $this->whitespacesConfig->getLineEnding();
133133
$originalIndent = $this->detectIndent($tokens, $tokens->getNextNonWhitespace($docBlockIndex));
134134
$toInsert = [
135-
new Token([T_DOC_COMMENT, '/**'.$lineEnd."${originalIndent} * @internal".$lineEnd."${originalIndent} */"]),
135+
new Token([T_DOC_COMMENT, '/**'.$lineEnd."{$originalIndent} * @internal".$lineEnd."{$originalIndent} */"]),
136136
new Token([T_WHITESPACE, $lineEnd.$originalIndent]),
137137
];
138138
$index = $tokens->getNextMeaningfulToken($docBlockIndex);

src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private function annotationsToParamList(array $annotations)
280280
if ($this->configuration['use_class_const']) {
281281
$params[] = $exceptionClass.'::class';
282282
} else {
283-
$params[] = "'${exceptionClass}'";
283+
$params[] = "'{$exceptionClass}'";
284284
}
285285

286286
if (isset($annotations['expectedExceptionMessage'])) {

src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private function createDocBlock(Tokens $tokens, $docBlockIndex)
346346
$lineEnd = $this->whitespacesConfig->getLineEnding();
347347
$originalIndent = $this->detectIndent($tokens, $tokens->getNextNonWhitespace($docBlockIndex));
348348
$toInsert = [
349-
new Token([T_DOC_COMMENT, '/**'.$lineEnd."${originalIndent} * @test".$lineEnd."${originalIndent} */"]),
349+
new Token([T_DOC_COMMENT, '/**'.$lineEnd."{$originalIndent} * @test".$lineEnd."{$originalIndent} */"]),
350350
new Token([T_WHITESPACE, $lineEnd.$originalIndent]),
351351
];
352352
$index = $tokens->getNextMeaningfulToken($docBlockIndex);

src/RuleSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ final class RuleSet implements RuleSetInterface
271271
'php_unit_set_up_tear_down_visibility' => true,
272272
'php_unit_strict' => true,
273273
'php_unit_test_annotation' => true,
274-
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
274+
'php_unit_test_case_static_method_calls' => true,
275275
'strict_comparison' => true,
276276
'strict_param' => true,
277277
'string_line_ending' => true,

tests/AbstractFunctionReferenceFixerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testAbstractFunctionReferenceFixer(
5656
) {
5757
$tokens = Tokens::fromCode($source);
5858

59-
$this->assertSame(
59+
static::assertSame(
6060
$expected,
6161
$this->fixer->findTest(
6262
$functionNameToSearch,
@@ -66,7 +66,7 @@ public function testAbstractFunctionReferenceFixer(
6666
)
6767
);
6868

69-
$this->assertFalse($tokens->isChanged());
69+
static::assertFalse($tokens->isChanged());
7070
}
7171

7272
public function provideAbstractFunctionReferenceFixerCases()

tests/AutoReview/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class CommandTest extends TestCase
3434
*/
3535
public function testCommandHasNameConst(Command $command)
3636
{
37-
$this->assertSame($command->getName(), \constant(\get_class($command).'::COMMAND_NAME'));
37+
static::assertSame($command->getName(), \constant(\get_class($command).'::COMMAND_NAME'));
3838
}
3939

4040
public function provideCommandHasNameConstCases()

tests/AutoReview/ComposerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testBranchAlias()
3535
return;
3636
}
3737

38-
$this->assertSame(
38+
static::assertSame(
3939
['dev-master' => $this->convertAppVersionToAliasedVersion(Application::VERSION)],
4040
$composerJson['extra']['branch-alias']
4141
);

0 commit comments

Comments
 (0)