e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Argument 4 (width) is null but \comment::compose_comment() takes int defined at /code/e107_handlers/comment_class.php:1056
Open

                $text .= e107::getComment()->compose_comment('poll', 'comment', intval($row['poll_id']), null, '', false, 'html');
Severity: Minor
Found in e107_plugins/poll/oldpolls.php by phan

Argument 5 (day) is string|string[] but \mktime() takes int
Open

        $active_start    = (!$_POST['startmonth'] || !$_POST['startday'] || !$_POST['startyear'] ? 0 : mktime (0, 0, 0, $_POST['startmonth'], $_POST['startday'], $_POST['startyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Call to undeclared method \e_db::db_getList
Open

                    $deacArray = $sql->db_getList();
Severity: Critical
Found in e107_plugins/poll/poll_class.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if(!getperms("P") || !e107::isInstalled('rss_menu'))
Severity: Minor
Found in e107_plugins/rss_menu/admin_prefs.php by phan

Assigning array<string></string> to property but \rss_admin->adminMenu is array{main/list:array{caption:'Manage',perm:'P'},main/import:array{caption:'Import',perm:'P'},main/prefs:array{caption:'Preferences',perm:'P'}}
Open

            $this->adminMenu['main/create'] = array('caption' => LAN_CREATE, 'perm' => 'P');
Severity: Minor
Found in e107_plugins/rss_menu/admin_prefs.php by phan

Variable $ns is undeclared
Open

        $ns->tablerender(RSS_MENU_L2, $text);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $conversion was undeclared, but array fields are being added to it.
Open

$conversion[1]     = 'news';
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Call to undeclared method \e_db::db_getList
Open

                $tmp = $sql->db_getList();
Severity: Critical
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious attempt to unset class \rssCreate's property e107 declared at /code/e107_plugins/rss_menu/rss.php:205 (This can be done, but is more commonly done for dynamic properties and Phan does not expect this)
Open

        unset($this->e107);
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Reference to undeclared constant \THEME_DISCLAIMER
Open

        return (defined('THEME_DISCLAIMER') && $pref['displaythemeinfo'] ? THEME_DISCLAIMER : '');
Severity: Minor
Found in e107_plugins/siteinfo/e_shortcode.php by phan

Argument 2 (value) is 1 but \e_admin_form_ui::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

            $text .= "<div class='buttons-bar center'>".$frm->button('save_social_logins',1,'submit',LAN_ADD)."</div>";
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Argument 2 (options) is 'w=800' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
Open

            $siteButton = (strpos($pref['sitebutton'],'{e_MEDIA') !== false) ? e107::getParser()->thumbUrl($pref['sitebutton'],'w=800',false, true) : e107::getParser()->replaceConstants($pref['sitebutton'],'full');
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 1 (name) is 'og:image' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:image',$siteLogo);
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Reference to instance property channel from undeclared class \MagpieRSS
Open

                        if($rss->channel['description'])

Suspicious type void of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                            if (NEWSFEED_DEBUG) echo NFLAN_48."<br /><br />".var_dump($dbData);

Call to undeclared method \e_db::db_getList
Open

            $nlArray = $sql->db_getList(); 
Severity: Critical
Found in e107_plugins/newsletter/admin_config.php by phan

Returning type false but showSelect() is declared to return array
Open

            return false; // Return Nothing to avoid confusion.     
Severity: Minor
Found in e107_plugins/newsletter/e_mailout.php by phan

Suspicious array access to nullable ?array
Open

$text .= $tp->parseTemplate($LASTSEEN_TEMPLATE['end'], true, $online_shortcodes);
Severity: Minor
Found in e107_plugins/online/lastseen_menu.php by phan

Variable $ONLINE_TEMPLATE was undeclared, but array fields are being added to it.
Open

        $ONLINE_TEMPLATE['enabled'] = "
Severity: Info
Found in e107_plugins/online/online_menu.php by phan

Invalid offset "user_id" of array type array{}
Open

        $uparams = array('id' => varset($this->currentUser['user_id']), 'name' => varset($this->currentUser['user_name']));
Severity
Category
Status
Source
Language