You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Olá, ao importar um arquivo retorno do Santander me apresentou o erro:
abs(): Argument #1 ($num) must be of type int|float, string given
Percebi que era por causa do PHP 8. Fiz o Debug e identifiquei o local, segue:
\vendor\quilhasoft\opencnabphp\src\resources\B033\retorno\L040\Registro1.php linha 185
$this->data['codigo_lote'] == abs(substr(RetornoAbstract::$lines[RetornoAbstract::$linesCounter], 3, 4))) {
Olá, ao importar um arquivo retorno do Santander me apresentou o erro:
abs(): Argument #1 ($num) must be of type int|float, string given
Percebi que era por causa do PHP 8. Fiz o Debug e identifiquei o local, segue:
\vendor\quilhasoft\opencnabphp\src\resources\B033\retorno\L040\Registro1.php linha 185
$this->data['codigo_lote'] == abs(substr(RetornoAbstract::$lines[RetornoAbstract::$linesCounter], 3, 4))) {
Resolvi assim:
$this->data['codigo_lote'] == abs((int)substr(RetornoAbstract::$lines[RetornoAbstract::$linesCounter], 3, 4))) {
Obrigado, e desculpe qualquer coisa!
The text was updated successfully, but these errors were encountered: