Skip to content

Commit

Permalink
Apply current CS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Oct 31, 2023
1 parent ffc5683 commit 9c96b1f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/DocBlock/TypeExpressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,15 @@ public static function provideGetTypesGlueCases(): iterable
}

/**
* @dataProvider provideUnionTypesCases
* @dataProvider provideIsUnionTypeCases
*/
public function testIsUnionType(bool $expectedIsUnionType, string $typesExpression): void
{
$expression = new TypeExpression($typesExpression, null, []);
static::assertSame($expectedIsUnionType, $expression->isUnionType());
self::assertSame($expectedIsUnionType, $expression->isUnionType());
}

public static function provideUnionTypesCases(): iterable
public static function provideIsUnionTypeCases(): iterable
{
yield [false, 'string'];

Expand Down
3 changes: 2 additions & 1 deletion tests/Fixer/FunctionNotation/PhpdocToParamTypeFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @internal
*
* @group phpdoc
*
* @covers \PhpCsFixer\Fixer\FunctionNotation\PhpdocToParamTypeFixer
*/
final class PhpdocToParamTypeFixerTest extends AbstractFixerTestCase
Expand All @@ -39,7 +40,7 @@ public function testFix(
?int $skipFromVersion = null
): void {
if (null !== $skipFromVersion && \PHP_VERSION_ID >= $skipFromVersion) {
static::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
self::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
}

if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @internal
*
* @group phpdoc
*
* @covers \PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer
*/
final class PhpdocToPropertyTypeFixerTest extends AbstractFixerTestCase
Expand All @@ -37,7 +38,7 @@ public function testFix(
?int $skipFromVersion = null
): void {
if (null !== $skipFromVersion && \PHP_VERSION_ID >= $skipFromVersion) {
static::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
self::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
}

if (
Expand Down
3 changes: 2 additions & 1 deletion tests/Fixer/FunctionNotation/PhpdocToReturnTypeFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @internal
*
* @group phpdoc
*
* @covers \PhpCsFixer\Fixer\FunctionNotation\PhpdocToReturnTypeFixer
*/
final class PhpdocToReturnTypeFixerTest extends AbstractFixerTestCase
Expand All @@ -39,7 +40,7 @@ public function testFix(
?int $skipFromVersion = null
): void {
if (null !== $skipFromVersion && \PHP_VERSION_ID >= $skipFromVersion) {
static::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
self::markTestSkipped(sprintf('Only available up to version %d', $skipFromVersion));
}

if (
Expand Down

0 comments on commit 9c96b1f

Please sign in to comment.