get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error

This is a PHP syntax error. You’re attempting to pass an array to get_terms() but haven’t used array() or [] to make it an array. This means that => is invalid here. The code should be:

public function pggggo_list_of_terms() {
    $terms = get_terms(
        [
            'taxonomy' => [
                'vehicle_safely_features',
                'vehicle_exterior_features',
                'vehicle_interior_features',
                'vehicle_extras',
            ],
        ]
    );

    return $terms;
}

or

public function pggggo_list_of_terms() {
    $terms = get_terms(
        array(
            'taxonomy' => array(
                'vehicle_safely_features',
                'vehicle_exterior_features',
                'vehicle_interior_features',
                'vehicle_extras',
            ),
        )
    );

    return $terms;
}