Skip to content

Commit 6ac9d29

Browse files
wouterjnicolas-grekas
authored andcommitted
Add void return types
1 parent 918f8ea commit 6ac9d29

31 files changed

+72
-33
lines changed

Command/DebugFirewallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected function displayFirewallSummary(string $name, FirewallContext $context
152152
);
153153
}
154154

155-
private function displaySwitchUser(FirewallContext $context, SymfonyStyle $io)
155+
private function displaySwitchUser(FirewallContext $context, SymfonyStyle $io): void
156156
{
157157
if ((null === $config = $context->getConfig()) || (null === $switchUser = $config->getSwitchUser())) {
158158
return;

DataCollector/SecurityDataCollector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(TokenStorageInterface $tokenStorage = null, RoleHier
5555
$this->hasVarDumper = class_exists(ClassStub::class);
5656
}
5757

58-
public function collect(Request $request, Response $response, \Throwable $exception = null)
58+
public function collect(Request $request, Response $response, \Throwable $exception = null): void
5959
{
6060
if (null === $this->tokenStorage) {
6161
$this->data = [
@@ -202,12 +202,12 @@ public function collect(Request $request, Response $response, \Throwable $except
202202
$this->data['authenticators'] = $this->firewall ? $this->firewall->getAuthenticatorsInfo() : [];
203203
}
204204

205-
public function reset()
205+
public function reset(): void
206206
{
207207
$this->data = [];
208208
}
209209

210-
public function lateCollect()
210+
public function lateCollect(): void
211211
{
212212
$this->data = $this->cloneVar($this->data);
213213
}

Debug/TraceableFirewallListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getAuthenticatorsInfo(): array
4141
return $this->authenticatorsInfo;
4242
}
4343

44-
protected function callListeners(RequestEvent $event, iterable $listeners)
44+
protected function callListeners(RequestEvent $event, iterable $listeners): void
4545
{
4646
$wrappedListeners = [];
4747
$wrappedLazyListeners = [];

DependencyInjection/Compiler/AddExpressionLanguageProvidersPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*/
2323
class AddExpressionLanguageProvidersPass implements CompilerPassInterface
2424
{
25+
/**
26+
* @return void
27+
*/
2528
public function process(ContainerBuilder $container)
2629
{
2730
if ($container->has('security.expression_language')) {

DependencyInjection/Compiler/AddSecurityVotersPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class AddSecurityVotersPass implements CompilerPassInterface
2929
{
3030
use PriorityTaggedServiceTrait;
3131

32+
/**
33+
* @return void
34+
*/
3235
public function process(ContainerBuilder $container)
3336
{
3437
if (!$container->hasDefinition('security.access.decision_manager')) {

DependencyInjection/Compiler/AddSessionDomainConstraintPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
*/
2222
class AddSessionDomainConstraintPass implements CompilerPassInterface
2323
{
24+
/**
25+
* @return void
26+
*/
2427
public function process(ContainerBuilder $container)
2528
{
2629
if (!$container->hasParameter('session.storage.options') || !$container->has('security.http_utils')) {

DependencyInjection/Compiler/CleanRememberMeVerifierPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
*/
2222
class CleanRememberMeVerifierPass implements CompilerPassInterface
2323
{
24+
/**
25+
* @return void
26+
*/
2427
public function process(ContainerBuilder $container)
2528
{
2629
if (!$container->hasDefinition('cache.system')) {

DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*/
2323
class MakeFirewallsEventDispatcherTraceablePass implements CompilerPassInterface
2424
{
25+
/**
26+
* @return void
27+
*/
2528
public function process(ContainerBuilder $container)
2629
{
2730
if (!$container->has('event_dispatcher') || !$container->hasParameter('security.firewalls')) {

DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
*/
2727
class RegisterCsrfFeaturesPass implements CompilerPassInterface
2828
{
29-
public function process(ContainerBuilder $container)
29+
public function process(ContainerBuilder $container): void
3030
{
3131
$this->registerCsrfProtectionListener($container);
3232
$this->registerLogoutHandler($container);
3333
}
3434

35-
private function registerCsrfProtectionListener(ContainerBuilder $container)
35+
private function registerCsrfProtectionListener(ContainerBuilder $container): void
3636
{
3737
if (!$container->has('security.authenticator.manager') || !$container->has('security.csrf.token_manager')) {
3838
return;
@@ -44,7 +44,7 @@ private function registerCsrfProtectionListener(ContainerBuilder $container)
4444
->setPublic(false);
4545
}
4646

47-
protected function registerLogoutHandler(ContainerBuilder $container)
47+
protected function registerLogoutHandler(ContainerBuilder $container): void
4848
{
4949
if (!$container->has('security.logout_listener') || !$container->has('security.csrf.token_storage')) {
5050
return;

DependencyInjection/Compiler/RegisterEntryPointPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
*/
2424
class RegisterEntryPointPass implements CompilerPassInterface
2525
{
26+
/**
27+
* @return void
28+
*/
2629
public function process(ContainerBuilder $container)
2730
{
2831
if (!$container->hasParameter('security.firewalls')) {

0 commit comments

Comments
 (0)