bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

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

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

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

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

Doc-block of $optional_headers in http contains phpdoc param type string which is incompatible with the param type ?array declared in the signature
Open

 * @param string $optional_headers optional stuff to stick in the header, not
Severity: Minor
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("ermission denied", $e['message']) !== false) {
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Parameter $db has undeclared type \mysqli
Open

    protected function __construct(?\mysqli $db) {
Severity: Minor
Found in firewall/src/db.php by phan

Doc-block of delete contains declared return type bool which is incompatible with the return type int declared in the signature
Open

     * @return bool 
Severity: Minor
Found in firewall/src/db.php by phan

Doc-block of store contains declared return type bool which is incompatible with the return type int declared in the signature
Open

     * @return bool true if the SQL write is successful
Severity: Minor
Found in firewall/src/db.php by phan

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

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

Doc-block of $optional_headers in http contains phpdoc param type string which is incompatible with the param type ?array declared in the signature
Open

 * @param string $optional_headers optional stuff to stick in the header, not
Severity: Minor
Found in firewall/src/http.php by phan

Possibly zero references to use statement for function find_cms_root (\BitFirePlugin\find_cms_root)
Open

use function BitFirePlugin\find_cms_root;
Severity: Minor
Found in firewall/src/server.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("dynamic_exceptions", time() + (DAY * 5), "true"));
Severity: Minor
Found in firewall/src/server.php by phan

Argument 1 (errno) is ?int but \posix_strerror() takes int
Open

        $errstr = function_exists("posix_strerror") ? posix_strerror($effect->read_status()) : " (can't convert errno: to string) ";
Severity: Minor
Found in firewall/src/server.php by phan

Argument 1 (errno) is ?int but \posix_strerror() takes int
Open

        $errstr = function_exists("posix_strerror") ? posix_strerror($effect->read_status()) : " (can't convert errno to string) ";
Severity: Minor
Found in firewall/src/server.php by phan

Assigning resource to property but \ThreadFin\shm::$ctx is false
Open

            self::$ctx = @shm_attach($id, 1089446, 0640);
Severity: Minor
Found in firewall/src/shmop.php by phan

Argument 1 (id) is false but \shm_get_var() takes resource
Open

        $result = @shm_get_var(self::$ctx, $keyint);
Severity: Minor
Found in firewall/src/shmop.php by phan

Argument 1 (shm_identifier) is false but \shm_remove_var() takes resource
Open

        @shm_remove_var(self::$ctx, $keyint);
Severity: Minor
Found in firewall/src/shmop.php by phan

Reference to undeclared constant \MY_CMS_ROOT
Open

    if (defined("MY_CMS_ROOT") && file_exists(\MY_CMS_ROOT)) { return \MY_CMS_ROOT; }
Severity: Minor
Found in custom-plugin/bitfire-plugin.php by phan

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

use function ThreadFin\httpp;
Severity: Minor
Found in error_handler.php by phan

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

use function BitFireWP\wp_parse_define;
Severity: Minor
Found in firewall/src/api.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/api.php by phan
Severity
Category
Status
Source
Language