Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

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