We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c29e1 commit 6921badCopy full SHA for 6921bad
changelog.md
@@ -10,3 +10,8 @@ All notable changes to `ChileanRut` will be documented in this file.
10
- calculateDv function
11
- getNumber function
12
- getDv function
13
+
14
15
+## v1.1.0 - 2021-08-26
16
+### Fixed
17
+- validate function bool return
src/Rut.php
@@ -51,7 +51,7 @@ public static function validate(string $rut): bool
51
return false;
52
}
53
$rut = explode('-', $rut);
54
- return (bool)strtolower($rut[1]) == self::calculateDv($rut[0]);
+ return strtolower($rut[1]) == self::calculateDv($rut[0]);
55
56
57
/**
0 commit comments