Skip to content

Commit

Permalink
Update upgrade gui
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jul 8, 2022
1 parent b694d48 commit af5e807
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ High impact changes
- Please check the most recent `data.php` config file and change yours accordingly
- The `Cast` interface now has a `$context` argument in the `cast` method
- The `RuleInferrer` interface now has a `RulesCollection` argument instead of an `array`
- By default, it is now impossible to include/exclude properties using a request parameter. This can be manually overwritten.
- By default, it is now impossible to include/exclude properties using a request parameter until manually specified. This behaviour can be overwritten by adding these methods to your data object:
```php
public static function allowedRequestIncludes(): ?array
{
return null;
}

public static function allowedRequestOnly(): ?array
{
return null;
}
```
- The `validate` method on a data object will not create a data object after validation, use `validateAndCreate` instead
- `DataCollection` is now being split into a `DataCollection`, `PaginatedDataCollection` and `CursorPaginatedDataCollection`

Expand Down

0 comments on commit af5e807

Please sign in to comment.