Showing 749 of 749 total issues
Reference to undeclared constant \DB_USER
Open
Open
$db_user = defined( 'DB_USER' ) ? DB_USER : '';
- Exclude checks
Saw a token Phan may have failed to parse after '* @return array<array-key mixed>':</array-key>
after array,
saw '<'
Open
Open
* @return array<array-key, mixed>
- Exclude checks
Function file_recurse
defined at /code/bin/bitfire-install.php:128
was previously defined at /code/recovery.php:21
Open
Open
function file_recurse(string $dirname, callable $fn, string $regex_filter = NULL, array $result = array(), $max_results = 20000) : array {
- Exclude checks
Possibly zero references to use statement for function dbg
(\ThreadFin\dbg)
Open
Open
use function ThreadFin\dbg;
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$uuid = $raw_data['uuid'];
- Exclude checks
Argument 2 (offset)
is string
but \BitFire\offset_post_text()
takes int
defined at /code/firewall/src/cms.php:1476
Open
Open
offset_post_text($c3, $inc[0][1], 512, $size),
- Exclude checks
Call to undeclared function \serve_dashboard()
Open
Open
serve_dashboard();
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
if ($header['hash1'] !== $key_hashes[0] || $header['hash2'] !== $key_hashes[1]) {
- Exclude checks
Possibly zero references to use statement for function dbg
(\ThreadFin\dbg)
Open
Open
use function ThreadFin\dbg;
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
return debugN("cache keys miss-match [%s] 1:%d/%d, 2:%d/%d", $key, $key_hashes[0], $header['hash1'], $key_hashes[1], $header['hash2']);
- Exclude checks
Assigning ''
to property but \BitFire\Request->post
is array<string>|array<string></string></string>
Open
Open
$request->post = "";
- Exclude checks
Doc-block of $data
in stream_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
Open
* @param string $data
- Exclude checks
Call with 1 arg(s) to \ThreadFin\Effect::__construct()
which only takes 0 arg(s) defined at /code/firewall/src/util.php:853
Open
Open
return new Effect(STATUS_OK);
- Exclude checks
Doc-block of dump_table
contains declared return type int
which is incompatible with the return type ?\ThreadFinDB\Offset
declared in the signature Open
Open
* @return int number of uncompressed bytes written
- Exclude checks
Saw an @param annotation for agent,
but it was not found in the param list of function load_bot_data(string $info_file, string $ip, string $trim_agent, int $valid = 1) : \BitFire\BotInfo;
Open
Open
* @param string $agent
- Exclude checks
Argument 1 (shm_identifier)
is false
but \shm_put_var()
takes resource
Open
Open
return @shm_put_var(self::$ctx, $keyint, $d);
- Exclude checks
Saw an @param annotation for error,
but it was not found in the param list of function add(?\BitFire\Entity $malware) : void
Open
Open
* @param null|TF_Error $error
- Exclude checks
Saw an @param annotation for content,
but it was not found in the param list of function char_freq_analysis(array $test_frequency, array $compare_freq) : float;
Open
Open
* @param string $content
- Exclude checks
Assigning float
to property but \BitFire\File_Info_Block->frequency
is array
Open
Open
$info->frequency = char_freq_analysis($char_counts, $compare_freq);
- Exclude checks
Saw an @param annotation for path,
but it was not found in the param list of function package_to_ver(string $carry, string $line) : string;
Open
Open
* @param mixed $path
- Exclude checks