bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Argument 2 (value) is int but \BitFireSvr\update_ini_value() takes string defined at /code/firewall/src/server.php:217
Open

        update_ini_value("cache_size", $size_in_bytes)->run();
Severity: Minor
Found in firewall/src/cuckoo.php by phan

syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    public string $ip;
Severity: Critical
Found in firewall/src/dashboard.php by phan

Saw an @param annotation for table, but the param list of function is_table_complete() : bool is empty
Open

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

Saw an @param annotation for db_name, but it was not found in the param list of function dump_database(\ThreadFinDB\Credentials $cred, callable $write_fn, int $max_bytes = null) : array;
Open

 * @param string $db_name the name of the database (eg, wordpress)
Severity: Info
Found in firewall/src/db.php by phan

array to false comparison
Open

                    if ($this->lines === false) {
Severity: Info
Found in firewall/src/util.php by phan

Argument #2 of this call to \stripos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

        if (!empty($e) && stripos("to allocate", $e['message']) !== false && $size_in_bytes > 162000) {
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Returning type int but counter() is declared to return string
Open

        return count($input);
Severity: Minor
Found in firewall/src/renderer.php by phan

Doc-block of decrypt_ssl contains declared return type \ThreadFin\MaybeI which is incompatible with the return type \ThreadFin\MaybeStr declared in the signature
Open

 * @return MaybeI with the original string data 
Severity: Minor
Found in firewall/src/util.php by phan

@throws type of authenticate_tech has undeclared type \SodiumException
Open

function authenticate_tech(string $signed_message) : MaybeStr {
Severity: Minor
Found in firewall/src/server.php by phan

Argument 3 (data) is string but \ThreadFin\http() takes array defined at /code/firewall/src/util.php:1648
Open

        $c = http($method, $url, $data, $optional_headers);
Severity: Minor
Found in firewall/src/util.php by phan

Argument 2 (pieces) is ?array but \join() takes string[] when argument 1 is string
Open

function dbg($x, $msg="") {$m=htmlspecialchars($msg); $z=(php_sapi_name() == "cli") ? print_r($x, true) : htmlspecialchars(print_r($x, true)); echo "<pre>\n[$m]\n($z)\n" . join("\n", debug(null)) . "\n" . debug(trace(null));
Severity: Minor
Found in firewall/src/util.php by phan

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

        $line = str_replace(array("\r","\n",":"), array(" "," ",";"), @sprintf($fmt, ...$args));
Severity: Minor
Found in firewall/src/util.php by phan

Call to undeclared function \msgpack_pack()
Open

        $compress = \msgpack_pack($data);
Severity: Critical
Found in firewall/src/util.php by phan

Reference to undeclared constant \DB_USER
Open

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

Possibly zero references to use statement for function serve_exceptions (\BitFire\serve_exceptions)
Open

use function BitFire\serve_exceptions;
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Reference to undeclared constant \WP_CONTENT_DIR
Open

        $dir = (!contains(\WP_CONTENT_DIR, doc_root())) ? doc_root() . \WP_CONTENT_DIR : \WP_CONTENT_DIR;
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Possibly zero references to use statement for classlike/namespace BitFireStringResult (\BitFire\StringResult)
Open

use BitFire\StringResult as BitFireStringResult;
Severity: Minor
Found in firewall/src/webfilter.php by phan

Call to undeclared function \add_menu_page()
Open

    \add_menu_page(
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \add_submenu_page()
Open

    \add_submenu_page(
Severity: Critical
Found in wordpress-plugin/bitfire-admin.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

    $out = '/' . trim($doc_root, '/') . ($hash['path'][0] != DS) ? DS : '' . $hash['path'];
Severity: Minor
Found in firewall/src/wordpress.php by phan
Severity
Category
Status
Source
Language