Skip to content

Commit 4d86d82

Browse files
committed
made types consistent with those defined in Hack
1 parent 879cace commit 4d86d82

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Authentication/AuthenticationProviderManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(array $providers, $eraseCredentials = true)
4949
}
5050

5151
$this->providers = $providers;
52-
$this->eraseCredentials = (Boolean) $eraseCredentials;
52+
$this->eraseCredentials = (bool) $eraseCredentials;
5353
}
5454

5555
public function setEventDispatcher(EventDispatcherInterface $dispatcher)

Authentication/Token/AbstractToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function isAuthenticated()
131131
*/
132132
public function setAuthenticated($authenticated)
133133
{
134-
$this->authenticated = (Boolean) $authenticated;
134+
$this->authenticated = (bool) $authenticated;
135135
}
136136

137137
/**
@@ -251,7 +251,7 @@ private function hasUserChanged(UserInterface $user)
251251
}
252252

253253
if ($this->user instanceof EquatableInterface) {
254-
return ! (Boolean) $this->user->isEqualTo($user);
254+
return ! (bool) $this->user->isEqualTo($user);
255255
}
256256

257257
if ($this->user->getPassword() !== $user->getPassword()) {

Authorization/AccessDecisionManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function __construct(array $voters, $strategy = 'affirmative', $allowIfAl
4545

4646
$this->voters = $voters;
4747
$this->strategy = 'decide'.ucfirst($strategy);
48-
$this->allowIfAllAbstainDecisions = (Boolean) $allowIfAllAbstainDecisions;
49-
$this->allowIfEqualGrantedDeniedDecisions = (Boolean) $allowIfEqualGrantedDeniedDecisions;
48+
$this->allowIfAllAbstainDecisions = (bool) $allowIfAllAbstainDecisions;
49+
$this->allowIfEqualGrantedDeniedDecisions = (bool) $allowIfEqualGrantedDeniedDecisions;
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)