Skip to content

Commit

Permalink
Merge pull request #276 from goellner/patch-1
Browse files Browse the repository at this point in the history
add missing `array $context` to cast method
  • Loading branch information
rubenvanassche authored Nov 29, 2022
2 parents 67510af + f452e8d commit 3d7d449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ That's because the status property expects a `PostStatus` enum object, but it ge
```php
class PostStatusCast implements Cast
{
public function cast(DataProperty $property, mixed $value): PostStatus
public function cast(DataProperty $property, mixed $value, array $context): PostStatus
{
return PostStatus::from($value);
}
Expand Down

0 comments on commit 3d7d449

Please sign in to comment.