Skip to content

Commit 8187851

Browse files
authored
Doctrine annotations replaced by PHP attributes (#4395)
2 parents 68ca49b + 3c455f6 commit 8187851

33 files changed

Lines changed: 460 additions & 248 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ If the `type` is not specified it will be fixed to `type="button""` because the
4747

4848
#### `Shopsys/orm_join_column_require_nullable`
4949

50-
Doctrine annotations `@ORM\ManyToOne` and `@ORM\OneToOne` must have `nullable` option defined explicitly in `@ORM\JoinColumn`.
50+
Doctrine attributes `#[ORM\ManyToOne]` and `#[ORM\OneToOne]` must have `nullable` option defined explicitly in `#[ORM\JoinColumn]`.
5151

52-
If the `nullable` option is not specified it will be fixed to `nullable=false` because the implicit value is `true` but this is the opposite to the implicit value of `nullable` for `@Column` annotation.
52+
If the `nullable` option is not specified it will be fixed to `nullable: false` because the implicit value is `true` but this is the opposite to the implicit value of `nullable` for `#[ORM\Column]` attribute.
5353
This makes it consistent.
5454

5555
### Rules for [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

0 commit comments

Comments
 (0)