From 9ea04cd77141094b270ae922ec175e750015cd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Slischka?= Date: Tue, 25 May 2021 18:06:31 +0200 Subject: [PATCH] typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7415311..3b4a4c4 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,6 @@ $emailaddress = Emailaddress::extractOrNull($input, 'not_existing_key', true) ?? Emailaddress::from('default@domain.com'); // uses null coalescing operator to assign default value if key not present or null or invalid - - ``` ## String-extractable types @@ -692,6 +690,7 @@ All Enum-extractable types share following features: - `equalsValue(string $value): self` Returns `true` if parent contains the same value as `$value`. Enums can be created using standard extractors or using their constants: + ```php CurrencyCode::from( CurrencyCode::EUR @@ -768,6 +767,7 @@ use SmartEmailing\Types\IntArray; use SmartEmailing\Types\IntType; use SmartEmailing\Types\StringArray; use SmartEmailing\Types\StringType; +use SmartEmailing\Types\InvalidTypeException; IntType::from(666); // 666 IntType::from('666'); // 666