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

Input value type is not replaced in GenericObjectValidator validation error #2377

Open
sorenmalling opened this issue Jan 22, 2021 · 0 comments

Comments

@sorenmalling
Copy link
Contributor

The first condition check in the GeneircObjectValidator goes likes this

    protected function isValid($object)
    {
        if (!is_object($object)) {
            $this->addError('Object expected, %1$s given.', 1241099149, [gettype($object)]);
            return;
        }
    ...
    }

The value %1$s is never replaced (done by a vsprintf in the render method of a Result object)

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

No branches or pull requests

1 participant