summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/AuthenticationProviderManager.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-04-15 07:44:12 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-04-15 07:44:12 +0200
commit3c065747901d8ba53056cb769cb1ef986e39c1d0 (patch)
tree3540ae13ca5bf1b473c9ba7bcc17a3221a4ba981 /Core/Authentication/AuthenticationProviderManager.php
parente5960cb3c8dc2c885c4fe784e957f8d1286f3fc7 (diff)
parentc9dff33575d2eb04e34c31167f5fba8bf3f355d6 (diff)
downloadsymfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.zip
symfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.tar.gz
symfony-security-3c065747901d8ba53056cb769cb1ef986e39c1d0.tar.bz2
minor #10701 Made types used by Symfony compatible with the ones of Hack (fabpot)
This PR was merged into the 2.3 branch. Discussion ---------- Made types used by Symfony compatible with the ones of Hack | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a PHP supports several ways to express types: like Boolean/bool or integer/int. Hack only supports one of them, so this PR proposes to use the Hack type to make Symfony a bit more "compatible" with Hack (gradual upgrade ;)). Commits ------- 3c9c10f made phpdoc types consistent with those defined in Hack 0555b7f made types consistent with those defined in Hack
Diffstat (limited to 'Core/Authentication/AuthenticationProviderManager.php')
-rw-r--r--Core/Authentication/AuthenticationProviderManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Authentication/AuthenticationProviderManager.php b/Core/Authentication/AuthenticationProviderManager.php
index 8b7474b..f713e8f 100644
--- a/Core/Authentication/AuthenticationProviderManager.php
+++ b/Core/Authentication/AuthenticationProviderManager.php
@@ -38,7 +38,7 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
* Constructor.
*
* @param AuthenticationProviderInterface[] $providers An array of AuthenticationProviderInterface instances
- * @param Boolean $eraseCredentials Whether to erase credentials after authentication or not
+ * @param bool $eraseCredentials Whether to erase credentials after authentication or not
*
* @throws \InvalidArgumentException
*/
@@ -49,7 +49,7 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
}
$this->providers = $providers;
- $this->eraseCredentials = (Boolean) $eraseCredentials;
+ $this->eraseCredentials = (bool) $eraseCredentials;
}
public function setEventDispatcher(EventDispatcherInterface $dispatcher)