Skip to content

Commit 6921bad

Browse files
committed
## v1.1.0 - 2021-08-25
### Fixed - validate function bool return
1 parent 16c29e1 commit 6921bad

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ All notable changes to `ChileanRut` will be documented in this file.
1010
- calculateDv function
1111
- getNumber function
1212
- getDv function
13+
14+
15+
## v1.1.0 - 2021-08-26
16+
### Fixed
17+
- validate function bool return

src/Rut.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function validate(string $rut): bool
5151
return false;
5252
}
5353
$rut = explode('-', $rut);
54-
return (bool)strtolower($rut[1]) == self::calculateDv($rut[0]);
54+
return strtolower($rut[1]) == self::calculateDv($rut[0]);
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)