Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with symfony/validator,Semantical Error #521

Open
visonforcoding opened this issue Mar 3, 2022 · 3 comments
Open

Conflict with symfony/validator,Semantical Error #521

visonforcoding opened this issue Mar 3, 2022 · 3 comments

Comments

@visonforcoding
Copy link

visonforcoding commented Mar 3, 2022

Package version, Laravel version

laravel-doctrine/orm": "^1.6",

"laravel/lumen-framework": "^7.2",

Expected behaviour

use Symfony\Component\Validator\Constraints as Assert;

class PushInfo
{
    /**
     * 
     * @var string
     * @Assert\NotBlank()
     */
    protected $bizId;
}

$va = sfvalidation();
        $errors = $va->validate($pushInfo);

can work

Actual behaviour

i got a exception [Semantical Error] The annotation \"@Symfony\\Component\\Validator\\Constraints\\NotBlank\" in property App\\Utils\\HllPush\\PushInfo::$bizId was never imported. Did you maybe forget to add a \"use\" statement for this annotation?

Steps to reproduce the behaviour

when i delete DoctrineServiceProvider

image

it can work right!

@eigan
Copy link
Member

eigan commented Mar 3, 2022

Which version of symfony/validator are you using?

@visonforcoding
Copy link
Author

Which version of symfony/validator are you using?

v5.3.10

@eigan
Copy link
Member

eigan commented Jan 25, 2023

This might have been related to #537. Did you solve it somehow, or could you try update extensions or acl if you use those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants