The variable $host seems to never exist, and therefore empty should always return true. Did you maybe rename this variable?
This check looks for calls to isset(...) or empty() on variables
that are yet undefined. These calls will always produce the same result and
can be removed.
This is most likely caused by the renaming of a variable or the removal of
a function/method parameter.
Loading history...
69
throw new InvalidArgumentException('Empty JIRA username configuration');
70
}
71
$this->username = $username;
72
73
return $this;
74
}
75
76
/**
77
* @throws InvalidArgumentException
78
*/
79
private function setPassword(string $password) : self
The variable $host seems to never exist, and therefore empty should always return true. Did you maybe rename this variable?
This check looks for calls to isset(...) or empty() on variables
that are yet undefined. These calls will always produce the same result and
can be removed.
This is most likely caused by the renaming of a variable or the removal of
a function/method parameter.
Loading history...
82
throw new InvalidArgumentException('Empty JIRA password configuration');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.