bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

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

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

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

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

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

    ini_set("max_execution_time", 245);
Severity: Minor
Found in firewall/src/api.php by phan

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

    $admin_value = (BitFire::get_instance()->cookie->extract("wp")() > 1);
Severity: Info
Found in firewall/src/api.php by phan

Assigning array to property but \BitFire\MatchType->_value is string
Open

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

Doc-block of $ex in add_exception_to_list contains phpdoc param type \Exception which is incompatible with the param type \BitFire\Exception declared in the signature
Open

 * @param Exception $ex 
Severity: Minor
Found in firewall/src/bitfire_pure.php by phan

Assigning bool to property but \BitFire\UserAgent->bot is string
Open

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

Saw misspelled annotation @returns. Did you mean @return?
Open

 * @returns a string with the result, or empty string
Severity: Info
Found in firewall/src/botfilter.php by phan

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

                    $_SERVER['REQUEST_METHOD'] = $maybe_bot_cookie->extract('m', $method)();
Severity: Info
Found in firewall/src/botfilter.php by phan

Argument 3 (expires) is array{expires:float|int,path:'/',domain:'',secure:false,httponly:true,samesite:'strict'} but \setcookie() takes int
Open

    if (PHP_VERSION_ID < 70300) { setcookie($name, $value, time() + $exp, '/; samesite=strict', '', false, true); } else { setcookie($name, $value, [ 'expires' => time() + $exp, 'path' => '/', 'domain' => '', 'secure' => false, 'httponly' => true, 'samesite' => 'strict' ]); }
Severity: Minor
Found in bin/bitfire-install.php by phan

Call to undeclared function \login_footer()
Open

    echo \login_footer("bitfire_mfa");
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

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

use function ThreadFin\dbg;
Severity: Minor
Found in custom-plugin/includes.php by phan

Possibly zero references to use statement for function update_ini_value (\BitFireSvr\update_ini_value)
Open

use function BitFireSvr\update_ini_value;
Severity: Minor
Found in error_handler.php by phan

Call to method fetch from undeclared class \DB\DB (Did you mean class \ThreadFinDB\DB)
Open

    $sql = $db->fetch("SELECT distinct crc_trim, size, tag FROM hash_{$hash['table']} H WHERE crc_path = {crc_path} $and", $hash);
Severity: Critical
Found in firewall/hash_compare.php by phan

Call to undeclared function \brotli_compress()
Open

  $final = brotli_compress($json);
Severity: Critical
Found in firewall/hash_compare.php by phan

Reference to undeclared constant \DB_HOST
Open

    $db_host     = defined( 'DB_HOST' ) ? DB_HOST : '';
Severity: Minor
Found in firewall/src/api.php by phan

Saw an @param annotation for ver, but it was not found in the param list of function batch_enrich(mixed $hash_slice, ?\BitFire\ScanConfig $config = null) : array;
Open

 * @param mixed $ver 
Severity: Info
Found in firewall/src/api.php by phan

Assigning array{path:mixed,code:int,param:string} to property but \BitFire\Request->post is array<string></string>
Open

            $req->post = [
Severity: Minor
Found in firewall/src/bitfire.php by phan

Call to undeclared function \serve_advanced()
Open

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

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

use function ThreadFin\dbg;
Severity: Minor
Found in firewall/src/botfilter.php by phan
Severity
Category
Status
Source
Language