Skip to content

Commit f4c439f

Browse files
authored
Update README.md
1 parent 6c1623a commit f4c439f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ If any of the passed properties doesn't exist in the class definition or if the
114114

115115
```php
116116
UserCreationData::make(['nope' => 'bar']); // throws "Public property $nope does not exist in class UserCreationData"
117-
UserCreationData::make(['email' => new Foo()); // throws 'UserCreationData::$email must be of type string, received a value of type Foo.',
117+
UserCreationData::make(['email' => new Foo()]); // throws 'UserCreationData::$email must be of type string, received a value of type Foo.',
118118
```
119119

120120
Then we can call the `toArray()` method to transform the object into an associative array:

0 commit comments

Comments
 (0)