Skip to content

Commit

Permalink
Merge pull request #794 from Klaas058/klaas058/fix-typos-in-docs
Browse files Browse the repository at this point in the history
Fix some typos in docs
  • Loading branch information
rubenvanassche authored Jun 17, 2024
2 parents e95b772 + 8f2d261 commit 38d4049
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/advanced-usage/internal-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Extends from the `DataType` and has the following additional properties:

An enum representing the kind of type of a property/parameter with respect to the package:

- Default: a non package spefic type
- Default: a non package specific type
- DataObject: a data object
- DataCollection: a `DataCollection` of data objects
- DataPaginatedCollection: a `DataPaginatedCollection` of data objects
Expand Down
2 changes: 1 addition & 1 deletion docs/as-a-data-transfer-object/casts.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SongData::from([
]);
```

And get an error because the first two properties are simple PHP types(string, int's, floats, booleans, arrays), but the following two properties are more complex types: `DateTime` and `Enum`, respectively.
And get an error because the first two properties are simple PHP types(strings, ints, floats, booleans, arrays), but the following two properties are more complex types: `DateTime` and `Enum`, respectively.

These types cannot be automatically created. A cast is needed to construct them from a string.

Expand Down
2 changes: 1 addition & 1 deletion docs/as-a-data-transfer-object/request-to-data-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can resolve a data object from the container.
app(SongData::class);
```

We resolve a data object from the container, it's properties will allready be filled by the values of the request with matching key names.
We resolve a data object from the container, its properties will already be filled by the values of the request with matching key names.
If the request contains data that is not compatible with the data object, a validation exception will be thrown.


Expand Down

0 comments on commit 38d4049

Please sign in to comment.