Closed
Description
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
- clone the repository
git clone git@github.com:maMykola/custom-validation-constraint.git
- install packages
composer install
- 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.