src/Fixer/Operator/TernaryToNullCoalescingFixer.php
private function hasChangingContent(Tokens $tokens)
    {
        static $operatorsPerId = [
            T_DEC,
            T_INC,
            T_STRING,
            T_YIELD,
        ];

        foreach ($tokens as $token) {
            if ($token->isGivenKind($operatorsPerId) || $token->equals('(')) {
                return true;
            }
        }

        return false;
    }
private function hasChangingContent(Tokens $tokens)
    {
        static $operatorsPerId = [
            T_DEC,
            T_INC,
            T_STRING,
            T_YIELD,
        ];

        foreach ($tokens as $token) {
            if ($token->isGivenKind($operatorsPerId) || $token->equals('(')) {
                return true;
            }
        }

        return false;
    }
private function hasChangingContent ( Tokens $ tokens ) { static $ operatorsPerId = [ T_DEC , T_INC , T_STRING , T_YIELD , ] ; foreach ( $ tokens as $ token ) { if ( $ token -> isGivenKind ( $ operatorsPerId ) || $ token -> equals ( '(' ) ) { return true ; } } return false ; }
Check if the `isset()` content may change if called multiple times.

@param Tokens $tokens The original token list

@return bool
Check if the isset () content may change if called multiple times .