Skip to content

Commit 3589e45

Browse files
committed
Update
1 parent fa08e1e commit 3589e45

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/Fixer/AbstractFixerTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ final protected function doTest(string $expected, ?string $input = null, ?array
180180
$expectedTokens = Tokens::fromCode($expected);
181181

182182
if ($input !== null) {
183+
self::assertNull($this->lintSource($input));
184+
183185
Tokens::clearCache();
184186
$inputTokens = Tokens::fromCode($input);
185187

tests/Fixer/NoUselessWriteVisibilityFixerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ public static function provideFixCases(): iterable
4141
yield 'class properties' => [
4242
<<<'PHP'
4343
<?php class Foo {
44-
public $x;
45-
protected $z;
46-
private $z;
44+
public int $x;
45+
protected int $y;
46+
private int $z;
4747
}
4848
PHP,
4949
<<<'PHP'
5050
<?php class Foo {
51-
public public(set) $x;
52-
protected protected(set) $z;
53-
private private(set) $z;
51+
public public(set) int $x;
52+
protected protected(set) int $y;
53+
private private(set) int $z;
5454
}
5555
PHP,
5656
];

0 commit comments

Comments
 (0)