Skip to content

Commit

Permalink
Add missing Enum constraint annotation + file header comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed Aug 25, 2017
1 parent 78de5b2 commit a1edb3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Bridge/Symfony/Validator/Constraint/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
use Symfony\Component\Validator\Constraints\ChoiceValidator;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class Enum extends Choice
{
/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/VarDumper/Caster/EnumCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the "elao/enum" package.
*
* Copyright (C) 2016 Elao
* Copyright (C) Elao
*
* @author Elao <contact@elao.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/VarDumper/Resources/register_caster.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the "elao/enum" package.
*
* Copyright (C) 2016 Elao
* Copyright (C) Elao
*
* @author Elao <contact@elao.com>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the "elao/enum" package.
*
* Copyright (C) 2016 Elao
* Copyright (C) Elao
*
* @author Elao <contact@elao.com>
*/
Expand Down

0 comments on commit a1edb3f

Please sign in to comment.