Skip to content

Commit 6708ee7

Browse files
committed
made phpdoc types consistent with those defined in Hack
1 parent 4d86d82 commit 6708ee7

11 files changed

+15
-15
lines changed

Authentication/AuthenticationProviderManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
3838
* Constructor.
3939
*
4040
* @param AuthenticationProviderInterface[] $providers An array of AuthenticationProviderInterface instances
41-
* @param Boolean $eraseCredentials Whether to erase credentials after authentication or not
41+
* @param bool $eraseCredentials Whether to erase credentials after authentication or not
4242
*
4343
* @throws \InvalidArgumentException
4444
*/

Authentication/Provider/DaoAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DaoAuthenticationProvider extends UserAuthenticationProvider
3838
* @param UserCheckerInterface $userChecker An UserCheckerInterface instance
3939
* @param string $providerKey The provider key
4040
* @param EncoderFactoryInterface $encoderFactory An EncoderFactoryInterface instance
41-
* @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not
41+
* @param bool $hideUserNotFoundExceptions Whether to hide user not found exception or not
4242
*/
4343
public function __construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, $providerKey, EncoderFactoryInterface $encoderFactory, $hideUserNotFoundExceptions = true)
4444
{

Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter
3737
*
3838
* @param UserCheckerInterface $userChecker An UserCheckerInterface interface
3939
* @param string $providerKey A provider key
40-
* @param Boolean $hideUserNotFoundExceptions Whether to hide user not found exception or not
40+
* @param bool $hideUserNotFoundExceptions Whether to hide user not found exception or not
4141
*
4242
* @throws \InvalidArgumentException
4343
*/

Authentication/Token/TokenInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function isAuthenticated();
7676
/**
7777
* Sets the authenticated flag.
7878
*
79-
* @param Boolean $isAuthenticated The authenticated flag
79+
* @param bool $isAuthenticated The authenticated flag
8080
*/
8181
public function setAuthenticated($isAuthenticated);
8282

Authorization/AccessDecisionManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
3232
*
3333
* @param VoterInterface[] $voters An array of VoterInterface instances
3434
* @param string $strategy The vote strategy
35-
* @param Boolean $allowIfAllAbstainDecisions Whether to grant access if all voters abstained or not
36-
* @param Boolean $allowIfEqualGrantedDeniedDecisions Whether to grant access if result are equals
35+
* @param bool $allowIfAllAbstainDecisions Whether to grant access if all voters abstained or not
36+
* @param bool $allowIfEqualGrantedDeniedDecisions Whether to grant access if result are equals
3737
*
3838
* @throws \InvalidArgumentException
3939
*/

Encoder/BCryptPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BCryptPasswordEncoder extends BasePasswordEncoder
2727
/**
2828
* Constructor.
2929
*
30-
* @param integer $cost The algorithmic cost that should be used
30+
* @param int $cost The algorithmic cost that should be used
3131
*
3232
* @throws \RuntimeException When no BCrypt encoder is available
3333
* @throws \InvalidArgumentException if cost is out of range

Encoder/MessageDigestPasswordEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class MessageDigestPasswordEncoder extends BasePasswordEncoder
2828
* Constructor.
2929
*
3030
* @param string $algorithm The digest algorithm to use
31-
* @param Boolean $encodeHashAsBase64 Whether to base64 encode the password hash
32-
* @param integer $iterations The number of iterations to use to stretch the password hash
31+
* @param bool $encodeHashAsBase64 Whether to base64 encode the password hash
32+
* @param int $iterations The number of iterations to use to stretch the password hash
3333
*/
3434
public function __construct($algorithm = 'sha512', $encodeHashAsBase64 = true, $iterations = 5000)
3535
{

Encoder/Pbkdf2PasswordEncoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class Pbkdf2PasswordEncoder extends BasePasswordEncoder
3737
* Constructor.
3838
*
3939
* @param string $algorithm The digest algorithm to use
40-
* @param Boolean $encodeHashAsBase64 Whether to base64 encode the password hash
41-
* @param integer $iterations The number of iterations to use to stretch the password hash
42-
* @param integer $length Length of derived key to create
40+
* @param bool $encodeHashAsBase64 Whether to base64 encode the password hash
41+
* @param int $iterations The number of iterations to use to stretch the password hash
42+
* @param int $length Length of derived key to create
4343
*/
4444
public function __construct($algorithm = 'sha512', $encodeHashAsBase64 = true, $iterations = 1000, $length = 40)
4545
{

Encoder/PlaintextPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PlaintextPasswordEncoder extends BasePasswordEncoder
2525
/**
2626
* Constructor.
2727
*
28-
* @param Boolean $ignorePasswordCase Compare password case-insensitive
28+
* @param bool $ignorePasswordCase Compare password case-insensitive
2929
*/
3030
public function __construct($ignorePasswordCase = false)
3131
{

SecurityContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SecurityContext implements SecurityContextInterface
3636
*
3737
* @param AuthenticationManagerInterface $authenticationManager An AuthenticationManager instance
3838
* @param AccessDecisionManagerInterface|null $accessDecisionManager An AccessDecisionManager instance
39-
* @param Boolean $alwaysAuthenticate
39+
* @param bool $alwaysAuthenticate
4040
*/
4141
public function __construct(AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, $alwaysAuthenticate = false)
4242
{

Util/SecureRandomInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface SecureRandomInterface
2121
/**
2222
* Generates the specified number of secure random bytes.
2323
*
24-
* @param integer $nbBytes
24+
* @param int $nbBytes
2525
*
2626
* @return string
2727
*/

0 commit comments

Comments
 (0)