"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorage.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

TokenStorage.php  (symfony-4.4.14):TokenStorage.php  (symfony-4.4.15)
skipping to change at line 48 skipping to change at line 48
} }
return $this->token; return $this->token;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setToken(TokenInterface $token = null) public function setToken(TokenInterface $token = null)
{ {
if (null !== $token && !method_exists($token, 'getRoleNames') && !$token instanceof \PHPUnit\Framework\MockObject\MockObject && !$token instanceof \Prop hecy\Prophecy\ProphecySubjectInterface) { if (null !== $token && !method_exists($token, 'getRoleNames') && !$token instanceof \PHPUnit\Framework\MockObject\MockObject && !$token instanceof \Prop hecy\Prophecy\ProphecySubjectInterface && !$token instanceof \Mockery\MockInterf ace) {
@trigger_error(sprintf('Not implementing the "%s::getRoleNames()" me thod in "%s" is deprecated since Symfony 4.3.', TokenInterface::class, \get_clas s($token)), \E_USER_DEPRECATED); @trigger_error(sprintf('Not implementing the "%s::getRoleNames()" me thod in "%s" is deprecated since Symfony 4.3.', TokenInterface::class, \get_clas s($token)), \E_USER_DEPRECATED);
} }
if ($token) { if ($token) {
// ensure any initializer is called // ensure any initializer is called
$this->getToken(); $this->getToken();
} }
$this->initializer = null; $this->initializer = null;
$this->token = $token; $this->token = $token;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)