Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
slischka committed May 25, 2021
1 parent 210fea1 commit 9ea04cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ $emailaddress
= Emailaddress::extractOrNull($input, 'not_existing_key', true)
?? Emailaddress::from('[email protected]');
// uses null coalescing operator to assign default value if key not present or null or invalid


```

## String-extractable types
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ea04cd

Please sign in to comment.