Skip to content

[Validator] Declaration of Custom Constraint #18868

@maMykola

Description

@maMykola

Setup

Docs: https://symfony.com/doc/5.4/validation/custom_constraint.html#creating-the-constraint-class
Repo: https://github.com/maMykola/custom-validation-constraint

Name Value
Symfony 5.4.28
PHP 8.2.10

Steps to reproduce

  1. clone the repository git clone git@github.com:maMykola/custom-validation-constraint.git
  2. install packages composer install
  3. execute the command bin/console app:validate-entity

Actual Result

The error shown in console:

[critical] Error thrown while running command "app:validate-entity". Message: "Unknown named parameter $mode"

In AcmeEntity.php line 13:
                                 
  Unknown named parameter $mode  
                                 

app:validate-entity

2023-09-15T11:57:01+00:00 [critical] Uncaught Error: Unknown named parameter $mode

Expected Result

The command should be executed without errors.

Metadata

Metadata

Assignees

Labels

ValidatorhasPRA Pull Request has already been submitted for this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy