Skip to content

Commit

Permalink
Fix syntax typo in attributes reference (doctrine#9513)
Browse files Browse the repository at this point in the history
Curly brackets are the annotation way of declaring array. Probably a
mistake while copy pasting some examples from annotations.
  • Loading branch information
Einenlum committed Feb 15, 2022
1 parent 8f847cb commit e8e61cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/reference/attributes-reference.rst
Expand Up @@ -570,7 +570,7 @@ Example with partial indexes:
<?php
use Doctrine\ORM\Mapping\Index;
#[Index(name: "search_idx", columns: {"category"},
#[Index(name: "search_idx", columns: ["category"],
options: [
"where": "((category IS NOT NULL))"
]
Expand Down

0 comments on commit e8e61cb

Please sign in to comment.