Closed simPod closed 3 years ago
Version: 3.1
setExpiration() says Accepts flag IUserStorage::CLEAR_IDENTITY
setExpiration()
Accepts flag IUserStorage::CLEAR_IDENTITY
IUserStorage is deprecated in favor of UserStorage
IUserStorage
UserStorage
UserStorage has no CLEAR_IDENTITY constant.
CLEAR_IDENTITY
Introduce CLEAR_IDENTITY constant to UserStorage
With the advent of named parameters in PHP, the preferred use will be setExpiration(clearIdentity: true).
setExpiration(clearIdentity: true)
https://github.com/nette/security/blob/v3.1.4/src/Security/User.php#L262-L268
Version: 3.1
Bug Description
setExpiration()
saysAccepts flag IUserStorage::CLEAR_IDENTITY
IUserStorage
is deprecated in favor ofUserStorage
UserStorage
has noCLEAR_IDENTITY
constant.Possible Solution
Introduce
CLEAR_IDENTITY
constant toUserStorage