bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Assigning ?array|?array<string></string> to property but \BitFire\Request->post is array<string></string>
Open

    $request->post = $post;
Severity: Minor
Found in firewall/src/api.php by phan

Argument 1 (string) is bool but \strlen() takes string
Open

    $pro = strlen((CFG::str("pro_key")) > 20) ? true : false;
Severity: Minor
Found in firewall/src/api.php by phan

Possibly zero references to use statement for function BINDL (\ThreadFin\partial)
Open

use function ThreadFin\partial as BINDL;
Severity: Minor
Found in custom-plugin/bitfire-plugin.php by phan

Possible attempt to access missing magic method __invoke of '\ThreadFin\MaybeI'
Open

    if ($c->extract("wp")() != $value) {
Severity: Info
Found in custom-plugin/bitfire-plugin.php by phan

Assigning ?string to property but \BitFire\Exception->host is null
Open

        $this->host = $host;
Severity: Minor
Found in firewall/src/bitfire.php by phan

Call to undeclared function \serve_exceptions()
Open

                serve_exceptions();
Severity: Critical
Found in firewall/src/bitfire.php by phan

Possibly zero references to use statement for function file_yield (\ThreadFin\file_yield)
Open

use function ThreadFin\file_yield;
Severity: Minor
Found in firewall/src/cms.php by phan

Returning type 1 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

Checking instanceof against undeclared class \mysqli_result
Open

        if ($r == false || !$r instanceof mysqli_result) {
Severity: Critical
Found in firewall/src/db.php by phan

Argument 2 (arr2) is ?array|null but \array_diff_key() takes array
Open

            $update_data = array_diff_key($data, $no_update);
Severity: Minor
Found in firewall/src/db.php by phan

Saw an @param annotation for sql, but it was not found in the param list of function from(?array $x, string $in_sql = '') : \ThreadFinDB\SQL
Open

     * @param string $sql the sql that generated the result
Severity: Info
Found in firewall/src/db.php by phan

Doc-block of $data in gz_output_fn is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

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

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

        $e->chain(update_ini_value("cache_token", mt_rand(32768,1300000))); // new cache entry
Severity: Minor
Found in firewall/src/server.php by phan

Reference to undeclared constant \WP_CONTENT_DIR
Open

        $plugin_root_dir = WP_CONTENT_DIR."/plugins/";
Severity: Minor
Found in firewall/src/server.php by phan

Possibly zero references to use statement for classlike/namespace Effect (\ThreadFin\Effect)
Open

use ThreadFin\Effect;
Severity: Minor
Found in firewall/src/server.php by phan

Possibly zero references to use statement for constant STATUS_EEXIST (\BitFire\STATUS_EEXIST)
Open

use const BitFire\STATUS_EEXIST;
Severity: Minor
Found in firewall/src/server.php by phan

Call to undeclared function \plugin_dir_path()
Open

    include_once \plugin_dir_path(__FILE__) . "bitfire-admin.php";
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

Call to undeclared function \esc_attr()
Open

        esc_attr($_POST["redirect_to"]));
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

Possibly zero references to use statement for constant DS (\BitFire\DS)
Open

use const BitFire\DS;
Severity: Minor
Found in firewall/hash_compare.php by phan

Possibly zero references to use statement for function wp_parse_credentials (\BitFireWP\wp_parse_credentials)
Open

use function BitFireWP\wp_parse_credentials;
Severity: Minor
Found in firewall/src/api.php by phan
Severity
Category
Status
Source
Language