
Rule combine_consecutive_unsets
ΒΆ
Calling unset
on multiple items should be done in one call.
ExamplesΒΆ
Example #1ΒΆ
--- Original
+++ New
<?php
-unset($a); unset($b);
+unset($a, $b);
Rule setsΒΆ
The rule is part of the following rule set:
Source classΒΆ
PhpCsFixer\Fixer\LanguageConstruct\CombineConsecutiveUnsetsFixer