Short cast bool using double exclamation mark should not be used.
--- Original
+++ New
<?php
-$a = !!$b;
+$a = (bool)$b;The rule is part of the following rule sets:
- Fixer class: PhpCsFixer\Fixer\CastNotation\NoShortBoolCastFixer
- Test class: PhpCsFixer\Tests\Fixer\CastNotation\NoShortBoolCastFixerTest
The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.