lib/Doctrine/DBAL/SQLParserUtils.php
private static function getPositionalPlaceholderPositions(string $statement) : array
    {
        return self::collectPlaceholders(
            $statement,
            '?',
            self::POSITIONAL_TOKEN,
            static function (string $_, int $placeholderPosition, int $fragmentPosition, array &$carry) : void {
                $carry[] = $placeholderPosition + $fragmentPosition;
            }
        );
    }
private static function getPositionalPlaceholderPositions(string $statement) : array
    {
        return self::collectPlaceholders(
            $statement,
            '?',
            self::POSITIONAL_TOKEN,
            static function (string $_, int $placeholderPosition, int $fragmentPosition, array &$carry) : void {
                $carry[] = $placeholderPosition + $fragmentPosition;
            }
        );
    }
private static function getPositionalPlaceholderPositions ( string $ statement ) : array { return self :: collectPlaceholders ( $ statement , '?' , self :: POSITIONAL_TOKEN , static function ( string $ _ , int $ placeholderPosition , int $ fragmentPosition , array & $ carry ) : void { $ carry [ ] = $ placeholderPosition + $ fragmentPosition ; } ) ; }
Returns a zero-indexed list of placeholder position.

@return int[]
Returns a zero - indexed list of placeholder position .