sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

599
active users

#attributes

0 posts0 participants0 posts today

#php #attributes beginner question 😅

given something like this
```php
#[OA\Response(response: Response::HTTP_OK, description: 'OK', content: new Model(type: SomeDto::class, groups: ['read'], serializationContext: ['useJms' => false]))]
```

and the `groups` and `serializationContext` are always the same - is there a way to extract these common parts so that I don't have to copy them over and over everywhere?

I'm using attributes for a while, but I'm not fully aware of all the rules.