Skip to content

Commit 3e7e753

Browse files
committed
Merge branch '2.4'
* 2.4: fixed types in phpdocs fixed types in phpdocs Conflicts: src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php src/Symfony/Component/Serializer/Encoder/JsonEncoder.php src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php src/Symfony/Component/Validator/Mapping/ClassMetadata.php src/Symfony/Component/Validator/Mapping/ElementMetadata.php src/Symfony/Component/Validator/Mapping/MemberMetadata.php src/Symfony/Component/Validator/MetadataFactoryInterface.php
2 parents 9a50f7e + 6c0a45e commit 3e7e753

13 files changed

+23
-23
lines changed

Authentication/AuthenticationTrustResolverInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface AuthenticationTrustResolverInterface
2828
*
2929
* @param TokenInterface $token
3030
*
31-
* @return Boolean
31+
* @return bool
3232
*/
3333
public function isAnonymous(TokenInterface $token = null);
3434

@@ -38,7 +38,7 @@ public function isAnonymous(TokenInterface $token = null);
3838
*
3939
* @param TokenInterface $token
4040
*
41-
* @return Boolean
41+
* @return bool
4242
*/
4343
public function isRememberMe(TokenInterface $token = null);
4444

@@ -47,7 +47,7 @@ public function isRememberMe(TokenInterface $token = null);
4747
*
4848
* @param TokenInterface $token
4949
*
50-
* @return Boolean
50+
* @return bool
5151
*/
5252
public function isFullFledged(TokenInterface $token = null);
5353
}

Authentication/Provider/AuthenticationProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface AuthenticationProviderInterface extends AuthenticationManagerInterface
2929
*
3030
* @param TokenInterface $token A TokenInterface instance
3131
*
32-
* @return Boolean true if the implementation supports the Token, false otherwise
32+
* @return bool true if the implementation supports the Token, false otherwise
3333
*/
3434
public function supports(TokenInterface $token);
3535
}

Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function setAttributes(array $attributes)
188188
*
189189
* @param string $name The attribute name
190190
*
191-
* @return Boolean true if the attribute exists, false otherwise
191+
* @return bool true if the attribute exists, false otherwise
192192
*/
193193
public function hasAttribute($name)
194194
{

Authentication/Token/TokenInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getUsername();
6969
/**
7070
* Returns whether the user is authenticated or not.
7171
*
72-
* @return Boolean true if the token has been authenticated, false otherwise
72+
* @return bool true if the token has been authenticated, false otherwise
7373
*/
7474
public function isAuthenticated();
7575

@@ -104,7 +104,7 @@ public function setAttributes(array $attributes);
104104
*
105105
* @param string $name The attribute name
106106
*
107-
* @return Boolean true if the attribute exists, false otherwise
107+
* @return bool true if the attribute exists, false otherwise
108108
*/
109109
public function hasAttribute($name);
110110

Authorization/AccessDecisionManagerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface AccessDecisionManagerInterface
2727
* @param array $attributes An array of attributes associated with the method being invoked
2828
* @param object $object The object to secure
2929
*
30-
* @return Boolean true if the access is granted, false otherwise
30+
* @return bool true if the access is granted, false otherwise
3131
*/
3232
public function decide(TokenInterface $token, array $attributes, $object = null);
3333

@@ -36,7 +36,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
3636
*
3737
* @param string $attribute An attribute
3838
*
39-
* @return Boolean true if this decision manager supports the attribute, false otherwise
39+
* @return bool true if this decision manager supports the attribute, false otherwise
4040
*/
4141
public function supportsAttribute($attribute);
4242

Authorization/Voter/VoterInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface VoterInterface
2929
*
3030
* @param string $attribute An attribute
3131
*
32-
* @return Boolean true if this Voter supports the attribute, false otherwise
32+
* @return bool true if this Voter supports the attribute, false otherwise
3333
*/
3434
public function supportsAttribute($attribute);
3535

@@ -38,7 +38,7 @@ public function supportsAttribute($attribute);
3838
*
3939
* @param string $class A class name
4040
*
41-
* @return Boolean true if this Voter can process the class
41+
* @return bool true if this Voter can process the class
4242
*/
4343
public function supportsClass($class);
4444

@@ -52,7 +52,7 @@ public function supportsClass($class);
5252
* @param object $object The object to secure
5353
* @param array $attributes An array of attributes associated with the method being invoked
5454
*
55-
* @return integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
55+
* @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
5656
*/
5757
public function vote(TokenInterface $token, $object, array $attributes);
5858
}

Encoder/BasePasswordEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function mergePasswordAndSalt($password, $salt)
7979
* @param string $password1 The first password
8080
* @param string $password2 The second password
8181
*
82-
* @return Boolean true if the two passwords are the same, false otherwise
82+
* @return bool true if the two passwords are the same, false otherwise
8383
*/
8484
protected function comparePasswords($password1, $password2)
8585
{
@@ -91,7 +91,7 @@ protected function comparePasswords($password1, $password2)
9191
*
9292
* @param string $password The password
9393
*
94-
* @return Boolean true if the password is too long, false otherwise
94+
* @return bool true if the password is too long, false otherwise
9595
*/
9696
protected function isPasswordTooLong($password)
9797
{

Encoder/PasswordEncoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function encodePassword($raw, $salt);
3535
* @param string $raw A raw password
3636
* @param string $salt The salt
3737
*
38-
* @return Boolean true if the password is valid, false otherwise
38+
* @return bool true if the password is valid, false otherwise
3939
*/
4040
public function isPasswordValid($encoded, $raw, $salt);
4141
}

SecurityContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function setToken(TokenInterface $token = null);
4444
* @param mixed $attributes
4545
* @param mixed $object
4646
*
47-
* @return Boolean
47+
* @return bool
4848
*/
4949
public function isGranted($attributes, $object = null);
5050
}

User/AdvancedUserInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface AdvancedUserInterface extends UserInterface
4343
* Internally, if this method returns false, the authentication system
4444
* will throw an AccountExpiredException and prevent login.
4545
*
46-
* @return Boolean true if the user's account is non expired, false otherwise
46+
* @return bool true if the user's account is non expired, false otherwise
4747
*
4848
* @see AccountExpiredException
4949
*/
@@ -55,7 +55,7 @@ public function isAccountNonExpired();
5555
* Internally, if this method returns false, the authentication system
5656
* will throw a LockedException and prevent login.
5757
*
58-
* @return Boolean true if the user is not locked, false otherwise
58+
* @return bool true if the user is not locked, false otherwise
5959
*
6060
* @see LockedException
6161
*/
@@ -67,7 +67,7 @@ public function isAccountNonLocked();
6767
* Internally, if this method returns false, the authentication system
6868
* will throw a CredentialsExpiredException and prevent login.
6969
*
70-
* @return Boolean true if the user's credentials are non expired, false otherwise
70+
* @return bool true if the user's credentials are non expired, false otherwise
7171
*
7272
* @see CredentialsExpiredException
7373
*/
@@ -79,7 +79,7 @@ public function isCredentialsNonExpired();
7979
* Internally, if this method returns false, the authentication system
8080
* will throw a DisabledException and prevent login.
8181
*
82-
* @return Boolean true if the user is enabled, false otherwise
82+
* @return bool true if the user is enabled, false otherwise
8383
*
8484
* @see DisabledException
8585
*/

User/EquatableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface EquatableInterface
3131
*
3232
* @param UserInterface $user
3333
*
34-
* @return Boolean
34+
* @return bool
3535
*/
3636
public function isEqualTo(UserInterface $user);
3737
}

User/UserProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function refreshUser(UserInterface $user);
7070
*
7171
* @param string $class
7272
*
73-
* @return Boolean
73+
* @return bool
7474
*/
7575
public function supportsClass($class);
7676
}

Util/StringUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private function __construct() {}
3131
* @param string $knownString The string of known length to compare against
3232
* @param string $userInput The string that the user can control
3333
*
34-
* @return Boolean true if the two strings are the same, false otherwise
34+
* @return bool true if the two strings are the same, false otherwise
3535
*/
3636
public static function equals($knownString, $userInput)
3737
{

0 commit comments

Comments
 (0)