Skip to content

ProgPilot is unable to deal with null coalescing operator #53

@Mister-Stein

Description

@Mister-Stein

Progpilot built from source, includes all recent commits and in default configuration. PHP 8.2.1

Unfortunately, ProgPilot have another one problem: it doesn't know how to deal with null coalescing operator.
It's syntax: expression1 ?? expression2
Simplified example code, no result after analysis:

<?php
global $wpdb;
$tainted = $_POST['order_by'] ?? 'default';
$wpdb->get_row($tainted);

Null coalescing operator, the same as ternary operator, also can be seen pretty often. Description about it in PHP Doc.
That would be nice, if ProgPilot could deal with it too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions