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
Open
update_ini_value("cache_size", $size_in_bytes)->run();
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
public string $ip;
- Exclude checks
Saw an @param annotation for table,
but the param list of function is_table_complete() : bool
is empty Open
Open
* @param string $table
- Exclude checks
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
Open
* @param string $db_name the name of the database (eg, wordpress)
- Exclude checks
array to false
comparison Open
Open
if ($this->lines === false) {
- Exclude checks
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
Open
if (!empty($e) && stripos("to allocate", $e['message']) !== false && $size_in_bytes > 162000) {
- Exclude checks
Returning type int
but counter()
is declared to return string
Open
Open
return count($input);
- Exclude checks
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
Open
* @return MaybeI with the original string data
- Exclude checks
@throws type of authenticate_tech
has undeclared type \SodiumException
Open
Open
function authenticate_tech(string $signed_message) : MaybeStr {
- Exclude checks
Argument 3 (data)
is string
but \ThreadFin\http()
takes array
defined at /code/firewall/src/util.php:1648
Open
Open
$c = http($method, $url, $data, $optional_headers);
- Exclude checks
Argument 2 (pieces)
is ?array
but \join()
takes string[]
when argument 1 is string
Open
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));
- Exclude checks
Argument 2 (vars)
is bool
but \sprintf()
takes float|int|string
Open
Open
$line = str_replace(array("\r","\n",":"), array(" "," ",";"), @sprintf($fmt, ...$args));
- Exclude checks
Call to undeclared function \msgpack_pack()
Open
Open
$compress = \msgpack_pack($data);
- Exclude checks
Reference to undeclared constant \DB_USER
Open
Open
$credentials = new Credentials(DB_USER, DB_PASSWORD, DB_HOST, DB_NAME);
- Exclude checks
Possibly zero references to use statement for function serve_exceptions
(\BitFire\serve_exceptions)
Open
Open
use function BitFire\serve_exceptions;
- Exclude checks
Reference to undeclared constant \WP_CONTENT_DIR
Open
Open
$dir = (!contains(\WP_CONTENT_DIR, doc_root())) ? doc_root() . \WP_CONTENT_DIR : \WP_CONTENT_DIR;
- Exclude checks
Possibly zero references to use statement for classlike/namespace BitFireStringResult
(\BitFire\StringResult)
Open
Open
use BitFire\StringResult as BitFireStringResult;
- Exclude checks
Call to undeclared function \add_menu_page()
Open
Open
\add_menu_page(
- Exclude checks
Call to undeclared function \add_submenu_page()
Open
Open
\add_submenu_page(
- Exclude checks
Suspicious type bool
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$out = '/' . trim($doc_root, '/') . ($hash['path'][0] != DS) ? DS : '' . $hash['path'];
- Exclude checks