doctrine / doctrine/annotations

Document default values in annotations

Open
#222 2 comments 0 reactions 0 assignees View on GitHub
Documentation question
Dominant language
PHP
Stars
6.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have found nothing in the documentation (and no test, but didn't search for too long).

Are there some docs about annotations that I can use without explicitly naming the parameters?
I guess it just injects an array with the key `"value"` but I am not to sure.

For reference, I mean code like this:

```php
/**
* @SomeAnnot("ohai")
*/
```

How is this unnamed parameter injected? It would be great if we could add a note about that on https://www.doctrine-project.org/projects/doctrine-annotations/en/latest/custom.html

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.