diff --git a/core/operations.md b/core/operations.md index 6753a31c900..bbd8c4358c7 100644 --- a/core/operations.md +++ b/core/operations.md @@ -76,10 +76,12 @@ use ApiPlatform\Metadata\ApiResource; use ApiPlatform\Metadata\Get; use ApiPlatform\Metadata\GetCollection; -#[ApiResource(operations=[ - new Get(), - new GetCollection() -])] +#[ApiResource( + operations: [ + new Get(), + new GetCollection() + ] +)] class Book { // ...