Skip to content

Commit a8ab951

Browse files
author
Matheus Lopes Santos
committed
Correção da mensagem de exception caso as mensagens do recibo estejam fora de conformidade
1 parent 6f1200e commit a8ab951

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Boleto.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Boleto
1414
*
1515
* @author Matheus Lopes Santos <fale_com_lopez@hotmail.com>
16-
* @version 1.0.2
16+
* @version 1.0.3
1717
* @since 20/09/2018
1818
* @package Boleto\Caixa
1919
*/
@@ -381,7 +381,7 @@ public function setFichaCompensacao($mensagem)
381381
}
382382
} else {
383383
if ( strlen($mensagem) > 40 ) {
384-
throw new InvalidArgumentException('A mensagem deve ter no máximo 40 caracteres');
384+
throw new InvalidArgumentException('A mensagem da ficha de compensação deve ter no máximo 40 caracteres');
385385
}
386386

387387
if ( count($this->fichaCompensacao) > 2 ) {
@@ -412,7 +412,7 @@ public function setReciboPagador($mensagem)
412412
}
413413
} else {
414414
if ( strlen($mensagem) > 40 ) {
415-
throw new InvalidArgumentException('A mensagem deve ter no máximo 40 caracteres');
415+
throw new InvalidArgumentException('A mensagem do recibo do pagador deve ter no máximo 40 caracteres');
416416
}
417417

418418
if ( count($this->reciboPagador) > 4 ) {

0 commit comments

Comments
 (0)