Skip to content

Commit

Permalink
Merge pull request #214 from froschdesign/hotfix/docs/wrong-deprecations
Browse files Browse the repository at this point in the history
Removes outdated deprecation messages from documentation for attributes and annotations
  • Loading branch information
Ocramius authored Jun 8, 2023
2 parents 3c32741 + 75f1ec8 commit 6cd7ae5
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions docs/book/v3/form-creation/attributes-or-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ Annotation names will be resolved according to the import statements in your
class; as such, you can make them as long or as short as you want depending on
what you import.

> ### Installation Requirements
> MISSING: **Installation Requirements**
>
> DocBlock annotations require
> [Doctrine's annotation parser `doctrine\annotations`](https://www.doctrine-project.org/projects/annotations.html)
> as a peer dependency, which contains an annotation parsing engine. You need to
> manually install it using Composer:
> DocBlock annotations require [Doctrine's annotation parser `doctrine\annotations`](https://www.doctrine-project.org/projects/annotations.html) as a peer dependency, which contains an annotation parsing engine.
> You need to manually install it using Composer:
>
> ```bash
> $ composer require doctrine/annotations
Expand Down Expand Up @@ -143,10 +141,6 @@ filter with the appropriate inputs, and all elements.

### AllowEmpty

> ### Deprecated
>
> This annotation is deprecated, please add a `NotEmpty` validator instead.
Marks an input as allowing an empty value. This annotation does not require a value.

```php
Expand Down Expand Up @@ -181,10 +175,6 @@ protected $myProperty;

### ContinueIfEmpty

> ### Deprecated
>
> This annotation is deprecated, please add a `NotEmpty` validator instead.
Indicate whether the element can be submitted when it is empty. A boolean
value is expected, defaulting to `true`. If `@Required` is set to `false`,
`@ContinueIfEmpty(true)` or simply `@ContinueIfEmpty()`needs to be specified
Expand Down

0 comments on commit 6cd7ae5

Please sign in to comment.