Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.76k stars 774 forks source link

Respect\Stringifier\stringify() undefined function #1379

Closed maximilianfixl closed 2 years ago

maximilianfixl commented 2 years ago

After updating from version 1.x to 2.1.3, I get an exception with the following application

$stringValidatorMax32 = v::length(32, 32);
$stringValidatorMax32->setName('entry ' . $x . ': ' . $varname)->assert($content);

The exception is this

Uncaught Error: Call to undefined function Respect\Stringifier\stringify() in
/var/www/vhosts/feondi.de/api.feondi.de/vendor/respect/validation/library/Message/Stringifier/KeepOriginalStringName.php:32

Installed is Respect/Validation and Respect/Stringifier

|--vendor
      |--respect
            |--stringifier
            |--validation    

Why can't v::length() use setName() and assert() anymore?

Expected was an output of the validation report by assert()

maximilianfixl commented 2 years ago

Solved by running composer self-update