I have a PHP class responsible for sending invoices, however it returns the following error, as if trying to pass an array to the variable:
[13-Mar-2018 14:08:26 America/Sao_Paulo] PHP Notice: Array to string conversion in C:\...ToolsNFePHP.class.php on line 5212
By the code, the variable $msg
should already send a string , already tried to convert from Array to String , but the error continues .
Follow the code:
/**
* pSetError
* Adiciona descrição do erro ao contenedor dos erros
*
* @name pSetError
* @param string $msg Descrição do erro
* @return none
*/
private function pSetError($msg)
{
$this->errMsg .= "$msg\n";
$this->errStatus = true;
}
This happens only in this case, other objects send work normally. I think I might be adding more than one error message to the same variable and causing the error, but without seeing it I can not fix it.