Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
light-source committed Dec 20, 2024
1 parent d78786e commit da95e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ $userName = Typed::string($companyObject, 'user.name');
$userName = Typed::string($companyObject,'users.john.name');
```

In all the cases, you can pass a default value as the third argument, e.g.:

```php
$userName = Typed::string($companyObject,'users.john.name', 'Guest');
```

## 5. FAQ

### 5.1) Why not just Null Coalescing Operator?
Expand Down

0 comments on commit da95e75

Please sign in to comment.