Skip to content

Commit 687e369

Browse files
committed
update
1 parent bbb92e9 commit 687e369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules-tests/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableInstanceRector/Fixture/skip_with_if_else.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ final class SkipWithIfElse extends TestCase
1414
$someObject = $this->getSomeObject();
1515
$value = $someObject->getSomeMethod();
1616

17-
if ($value !== null) {
17+
if ($someObject !== null) {
1818
$this->assertSame(123, $value);
1919

2020
// we know the value here, no need to add instanceof
2121
$value = $someObject->getSomeMethod();
2222
} else {
23-
$this->assertNull($value);
23+
$this->assertNull($someObject);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)