We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c1623a commit f4c439fCopy full SHA for f4c439f
README.md
@@ -114,7 +114,7 @@ If any of the passed properties doesn't exist in the class definition or if the
114
115
```php
116
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.',
+UserCreationData::make(['email' => new Foo()]); // throws 'UserCreationData::$email must be of type string, received a value of type Foo.',
118
```
119
120
Then we can call the `toArray()` method to transform the object into an associative array:
0 commit comments