8000 symfony/security - minor issue in exception message · Issue #59328 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
symfony/security - minor issue in exception message #59328
Closed
@alcohol

Description

@alcohol

Symfony version(s) affected

6.x and 7.x

Description

I think the arguments are the wrong way around? The message made sense in 5.4, but since 6.0 it seems to be the wrong way around.

5.4

trigger_deprecation('symfony/security-core', '5.3', 'Using the "%s" validation constraint without implementing the "%s" interface is deprecated, the "%s" class should implement it.', UserPassword::class, PasswordAuthenticatedUserInterface::class, get_debug_type($user));
and
trigger_deprecation('symfony/security-core', '5.3', 'Returning a string from "getSalt()" without implementing the "%s" interface is deprecated, the "%s" class should implement it.', LegacyPasswordAuthenticatedUserInterface::class, get_debug_type($user));

6.0 and up

throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', PasswordAuthenticatedUserInterface::class, get_debug_type($user)));

7.0 and up

throw new ConstraintDefinitionException(sprintf('The "%s" class must implement the "%s" interface.', PasswordAuthenticatedUserInterface::class, get_debug_type($user)));

How to reproduce

n/a

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0