Skip to content

Commit ea1e025

Browse files
committed
Apply "no_unset_on_property" CS rule
1 parent e38f8cf commit ea1e025

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'list_syntax' => ['syntax' => 'short'],
2323
'modernize_types_casting' => true,
2424
'no_homoglyph_names' => true,
25+
'no_unset_on_property' => true,
2526
'no_useless_else' => true,
2627
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2728
'phpdoc_summary' => false,

tests/Gedmo/Tool/BaseTestCaseMongoODM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function tearDown(): void
5656
$documentDatabase->drop();
5757
}
5858

59-
unset($this->dm);
59+
$this->dm = null;
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)