Skip to content

Deprecated Symfony\Component\Security\Core\Security in symfony 6.2 #174

Closed
@FlorianPerrot

Description

@FlorianPerrot

Hello

With symfony 6.2 Symfony\Component\Security\Core\Security is deprecated and replaced by Symfony\Bundle\SecurityBundle\Security
see: https://github.com/symfony/security-core/blob/6.4/Security.php#L32

My project in symfony 6.4 crash:

1) UserCest: User logged can change his password
 Test  tests/Acceptance/UserCest.php:userLoggedCanChangeHisPassword
                                                                                                                                                                                         
  [TypeError] Codeception\Module\Symfony::grabSecurityService(): Return value must be of type Symfony\Component\Security\Core\Security, Symfony\Bundle\SecurityBundle\Security returned                                                                                                                                                                           

Proposal

Remove type on "grabSecurityService"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions