From 8a3ccaff8e8e3c8fcfb3aca6e54c33e12d0f0a10 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 10 Dec 2023 16:48:03 +0100 Subject: [PATCH] Edit README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84bd731..adda5c4 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,13 @@ Optional integer length (8 or 13) to check only for EAN-8 or EAN-13. Checks for a valid [Global Trade Item Number](https://en.wikipedia.org/wiki/Global_Trade_Item_Number). - public Intervention\Validation\Rules\Gtin::__construct(?int $length = null) + public Intervention\Validation\Rules\Gtin::__construct(array $lengths = [8, 12, 13, 14]) #### Parameters **length** -Optional integer length to check only for certain types (GTIN-8, GTIN-12, GTIN-13 or GTIN-14). +Optional array of allowed lengths to check only for certain types (GTIN-8, GTIN-12, GTIN-13 or GTIN-14). ### Hexadecimal color code @@ -205,7 +205,7 @@ Checks for a valid [Mime Type](https://en.wikipedia.org/wiki/Media_type) (Media The field under validation must be a [postal code](https://en.wikipedia.org/wiki/Postal_code) of the given country. - public Intervention\Validation\Rules\Postalcode::__construct(array $countrycodes) + public Intervention\Validation\Rules\Postalcode::__construct(array $countrycodes = []) #### Parameters