From 78e4edab749b994b7647a9bb851cfa4829cd87e1 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 2 Sep 2022 01:01:16 +0200 Subject: [PATCH] Add inch and feet as allowed units --- l18n | 2 +- src/MDUnitsSet.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/l18n b/l18n index 849bf88..f0417c7 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 849bf8870d0025a655b21b811781e9827e25caa4 +Subproject commit f0417c7857c626d0ed7769b037ecd5a8519ed906 diff --git a/src/MDUnitsSet.php b/src/MDUnitsSet.php index bf6ab5a..a8e861a 100644 --- a/src/MDUnitsSet.php +++ b/src/MDUnitsSet.php @@ -16,7 +16,9 @@ final class MDUnitsSet extends MDValueSet { const UNITS_LENGTH_TO_MILLIMETER = [ 'm' => 1000, + 'ft' => 304.8, 'dm' => 100, + 'in' => 25.4, 'cm' => 10, 'mm' => 1, ];