Skip to content

Commit a6d33e5

Browse files
resolve erro com sanitize
1 parent 574114d commit a6d33e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/validator-docs/Rules/Renavam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Renavam extends Sanitization
88
{
99
public function validateRenavam($attribute, $renavam): bool
1010
{
11-
$renavam = $this->sanitize($renavam);
11+
$renavam = $this->sanitize((string) $renavam);
1212
$renavamArray = str_split($renavam);
1313
$digit = $this->determinarDigito($renavamArray);
1414

tests/Rules/RenavamTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ final class RenavamTest extends ValidatorTestCase
1212
*
1313
* @dataProvider renavamProvider
1414
*/
15-
public function renavamValido($renavam, $expected): void
15+
public function renavamValido($renavam, $esperado): void
1616
{
1717
$instance = new Renavam();
1818

1919
$atual = $instance->validateRenavam('', $renavam);
2020

21-
$this->assertSame($expected, $atual);
21+
$this->assertSame($esperado, $atual);
2222
}
2323

2424
public function renavamProvider(): array
2525
{
2626
return [
2727
'Input correto' => [
2828
'renavam' => 639884962,
29-
'expected' => true,
29+
'esperado' => true,
3030
],
3131
'Input incorreto' => [
3232
'renavam' => 11111111111,
33-
'expected' => false
33+
'esperado' => false
3434
],
3535
];
3636
}

0 commit comments

Comments
 (0)