It seems like method refreshAccessToken of Infusionsoft\Infusionsoft have incorrect return type declared in doc block.
/**
* @return array
* @throws InfusionsoftException
*/
public function refreshAccessToken()
But it returns Token object.
return $this->getToken();
...
/**
* @return Token
*/
public function getToken()
{
return $this->token;
}
This could be a problem for code static analyse tools, like psalm or phpstan.