Skip to content

Commit e4659ac

Browse files
authored
Merge pull request #50 from geekcom/develop
minor correction, update doc
2 parents bc04314 + 0b7705c commit e4659ac

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
<!-- dumped content start -->
44

5+
[3.3.0]
6+
7+
- [#49] solved: complexity, update: tests, Thanks to [@geekcom]
8+
9+
<!-- dumped content end -->
10+
11+
<!-- dumped content start -->
12+
513
## Unreleased
614

715
- [#48] added support for changelogs, Thanks to [@geekcom]
@@ -80,4 +88,5 @@
8088
[@kidh0]: https://github.com/kidh0
8189
[@geekcom]: https://github.com/geekcom
8290
[@andrergcosta]: https://github.com/andrergcosta
83-
[@MrEko]: https://github.com/MrEko
91+
[@MrEko]: https://github.com/MrEko
92+
[#49]: https://github.com/geekcom/validator-docs/pull/49

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ No arquivo `composer.json`, adicione validator-docs como dependência do seu pro
1515

1616
```
1717
"require": {
18-
"geekcom/validator-docs" : "^3.0"
18+
"geekcom/validator-docs" : "^3.3"
1919
},
2020
```
2121

src/validator-docs/Rules/Cnh.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ final class Cnh extends Sanitization
1414
*/
1515
public function validateCnh($attribute, $value): bool
1616
{
17-
$value = $this->sanitize($value);
18-
1917
if (!is_scalar($value)) {
2018
return false;
2119
}
2220

21+
$value = $this->sanitize($value);
22+
2323
if (mb_strlen($value) != 11 || ((int) $value === 0)) {
2424
return false;
2525
}

0 commit comments

Comments
 (0)