Skip to content

Commit c3707f8

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents b7a03f4 + bd77a56 commit c3707f8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to `iamfarhad/validation` will be documented in this file
44

5+
## v3.1.0 - 2023-02-27
6+
7+
**Full Changelog**: https://github.com/iamfarhad/validation/compare/v3.0.0...v3.1.0
8+
9+
- Added Laravel Pint
10+
- Added PHP Rector
11+
- Added username validation
12+
513
## v3.0.0 - 2023-02-21
614

715
### What's Changed

src/Rules/NationalCode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function passes($attribute, $value): bool
3131
}
3232

3333
$control = ($sub % 11) < 2 ? $sub % 11 : 11 - ($sub % 11);
34+
3435
return $value[9] == $control;
3536
}
3637

tests/Rules/UsernameTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Iamfarhad\Validation\Tests\Rules;
44

5-
use Iamfarhad\Validation\Rules\Address;
65
use Iamfarhad\Validation\Rules\Username;
76
use Iamfarhad\Validation\Tests\TestCase;
87
use Illuminate\Support\Facades\Validator;

0 commit comments

Comments
 (0)