The call to Blacklight\Binaries::__construct() has too many arguments starting with array('NNTP' => $nntp).
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
44
(/** @scrutinizer ignore-call */ new Binaries(['NNTP' => $nntp]))->updateGroup($groupMySQL);
This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.
Loading history...
45
46
return self::SUCCESS;
47
} catch (\Throwable $e) {
48
Log::error($e->getTraceAsString());
49
$this->error($e->getMessage());
50
51
return self::FAILURE;
52
}
53
}
54
55
/**
56
* Get NNTP connection.
57
*/
58
private function getNntp(): NNTP
59
{
60
$nntp = new NNTP;
61
62
if ((config('nntmux_nntp.use_alternate_nntp_server') === true
63
? $nntp->doConnect(false, true)
64
: $nntp->doConnect()) !== true) {
65
throw new \Exception('Unable to connect to usenet.');