bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Returning type 0 but quote() is declared to return string
Open

    if (is_bool($input)) { return $input ? 1 : 0; }
Severity: Minor
Found in firewall/src/db.php by phan

Parameter $mysqli has undeclared type \mysqli
Open

    public static function from(?\mysqli $mysqli) : DB {
Severity: Minor
Found in firewall/src/db.php by phan

Saw an @param annotation for table, but it was not found in the param list of function set_check_point(int $offset) : void
Open

     * @param string $table 
Severity: Info
Found in firewall/src/db.php by phan

Variable $edits was undeclared, but array fields are being added to it.
Open

            $edits[] = new FineDiffCopyOp($from_len);
Severity: Info
Found in firewall/src/diff.php by phan

Doc-block of $modifier_name in view_modifier contains phpdoc param type null which is incompatible with the param type string declared in the signature
Open

 * @param null|string $modifier_name 
Severity: Minor
Found in firewall/src/renderer.php by phan

array to false comparison
Open

        if ($new_config != false && $x1 > 10 && $x2 >= $x1) {
Severity: Info
Found in firewall/src/server.php by phan

Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        $effect->exit(false, STATUS_FAIL, "an error occurred updating $filename, [$x1/$x2] (is: $is) please repair with original file");
Severity: Minor
Found in firewall/src/server.php by phan

Returning type ?bool but tar_read_header() is declared to return ?\ThreadFin\TarHeader
Open

        return debugN("unable to read header block, end of archive");
Severity: Minor
Found in firewall/src/tar.php by phan

@throws type of http has undeclared type \ThreadFin\HttpTimeoutException
Open

function http(string $method, string $path, $data, ?array $optional_headers = []) {
Severity: Minor
Found in firewall/src/util.php by phan

Argument 2 (vars) is bool but \sprintf() takes float|int|string
Open

        $line = sprintf($fmt, ...$args);
Severity: Minor
Found in firewall/src/util.php by phan

Argument 2 (value) is ?string but \setcookie() takes string
Open

        setcookie($name, $value, time() + $exp, '/; samesite=strict', '', false, true);
Severity: Minor
Found in firewall/src/util.php by phan

Call to undeclared function \BitFire\lock_site_dir()
Open

            \BitFire\lock_site_dir($content_path, true);
Severity: Critical
Found in firewall/src/wordpress.php by phan

Reference to undeclared constant \DB_PASSWORD
Open

        $credentials = new Credentials(DB_USER, DB_PASSWORD, DB_HOST, DB_NAME);
Severity: Minor
Found in firewall/src/wordpress.php by phan

Argument 2 (newvalue) is true but \ini_set() takes string
Open

    @ini_set('zend.assertions', ASSERT);
Severity: Minor
Found in startup.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_register_script("dashkit-internal", plugin_dir_url(__FILE__) . "public/internal.js", [], "1.0", false);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \wp_register_script()
Open

    \wp_register_script("dashkit-internal", plugin_dir_url(__FILE__) . "public/internal.js", [], "1.0", false);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \esc_html()
Open

            $name = esc_html(strtolower($plugin["name"]));
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \esc_html()
Open

                $vendor = esc_html(strtolower($plugin["vendor"]));
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \esc_html()
Open

            $type = esc_html($plugin["cvss_type"]??"unknown");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Reference to undeclared constant \DISABLE_NAG_NOTICES
Open

    if (defined("DISABLE_NAG_NOTICES") && DISABLE_NAG_NOTICES) { return; }
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan
Severity
Category
Status
Source
Language