1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-12 22:35:55 +00:00

Address PHPStan warnings in 'classes/pluginhost.php'.

------ --------------------------------------------------------------------
Line   classes/pluginhost.php
------ --------------------------------------------------------------------
16     Property PluginHost::$last_registered is never read, only written.
386    If condition is always true.
------ --------------------------------------------------------------------
This commit is contained in:
wn_
2021-11-01 20:31:42 +00:00
parent a7a59fe0e2
commit 8a920a16e7

View File

@@ -13,7 +13,6 @@ class PluginHost {
private $api_methods = array();
private $plugin_actions = array();
private $owner_uid;
private $last_registered;
private $data_loaded;
private static $instance;
@@ -383,7 +382,7 @@ class PluginHost {
if (!isset($this->plugins[$class])) {
try {
if (file_exists($file)) require_once $file;
require_once $file;
} catch (Error $err) {
user_error($err, E_USER_WARNING);
continue;
@@ -404,8 +403,6 @@ class PluginHost {
_bind_textdomain_codeset($class, "UTF-8");
}
$this->last_registered = $class;
try {
switch ($kind) {
case $this::KIND_SYSTEM: