Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 578 Bytes

UPGRADE-5.2.md

File metadata and controls

35 lines (25 loc) · 578 Bytes

UPGRADE FROM 5.1 to 5.2

Mime

  • Deprecated Address::fromString(), use Address::create() instead

Validator

  • Deprecated the allowEmptyString option of the Length constraint.

    Before:

    use Symfony\Component\Validator\Constraints as Assert;
    
    /**
     * @Assert\Length(min=5, allowEmptyString=true)
     */

    After:

    use Symfony\Component\Validator\Constraints as Assert;
    
    /**
     * @Assert\AtLeastOneOf({
     *     @Assert\Blank(),
     *     @Assert\Length(min=5)
     * })
     */