Skip to content

Commit 8f3e4eb

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing PHPdoc return types
1 parent 74a2425 commit 8f3e4eb

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

Debug/TraceableFirewallListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ final class TraceableFirewallListener extends FirewallListener
2828
private array $wrappedListeners = [];
2929
private array $authenticatorsInfo = [];
3030

31+
/**
32+
* @return array
33+
*/
3134
public function getWrappedListeners()
3235
{
3336
return $this->wrappedListeners;

DependencyInjection/Security/Factory/AbstractFactory.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
1515
use Symfony\Component\DependencyInjection\ChildDefinition;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
17-
use Symfony\Component\DependencyInjection\Reference;
1817

1918
/**
2019
* AbstractFactory is the base class for all classes inheriting from
@@ -73,6 +72,9 @@ public function addConfiguration(NodeDefinition $node)
7372
}
7473
}
7574

75+
/**
76+
* @return string
77+
*/
7678
protected function createAuthenticationSuccessHandler(ContainerBuilder $container, string $id, array $config)
7779
{
7880
$successHandlerId = $this->getSuccessHandlerId($id);
@@ -92,6 +94,9 @@ protected function createAuthenticationSuccessHandler(ContainerBuilder $containe
9294
return $successHandlerId;
9395
}
9496

97+
/**
98+
* @return string
99+
*/
95100
protected function createAuthenticationFailureHandler(ContainerBuilder $container, string $id, array $config)
96101
{
97102
$id = $this->getFailureHandlerId($id);
@@ -109,11 +114,17 @@ protected function createAuthenticationFailureHandler(ContainerBuilder $containe
109114
return $id;
110115
}
111116

117+
/**
118+
* @return string
119+
*/
112120
protected function getSuccessHandlerId(string $id)
113121
{
114122
return 'security.authentication.success_handler.'.$id.'.'.str_replace('-', '_', $this->getKey());
115123
}
116124

125+
/**
126+
* @return string
127+
*/
117128
protected function getFailureHandlerId(string $id)
118129
{
119130
return 'security.authentication.failure_handler.'.$id.'.'.str_replace('-', '_', $this->getKey());

DependencyInjection/Security/UserProvider/InMemoryFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function create(ContainerBuilder $container, string $id, array $config)
3737
$definition->addArgument($users);
3838
}
3939

40+
/**
41+
* @return string
42+
*/
4043
public function getKey()
4144
{
4245
return 'memory';

DependencyInjection/Security/UserProvider/LdapFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function create(ContainerBuilder $container, string $id, array $config)
4040
;
4141
}
4242

43+
/**
44+
* @return string
45+
*/
4346
public function getKey()
4447
{
4548
return 'ldap';

Security/FirewallContext.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __construct(iterable $listeners, ExceptionListener $exceptionLis
3838
$this->config = $config;
3939
}
4040

41+
/**
42+
* @return FirewallConfig|null
43+
*/
4144
public function getConfig()
4245
{
4346
return $this->config;
@@ -51,11 +54,17 @@ public function getListeners(): iterable
5154
return $this->listeners;
5255
}
5356

57+
/**
58+
* @return ExceptionListener|null
59+
*/
5460
public function getExceptionListener()
5561
{
5662
return $this->exceptionListener;
5763
}
5864

65+
/**
66+
* @return LogoutListener|null
67+
*/
5968
public function getLogoutListener()
6069
{
6170
return $this->logoutListener;

0 commit comments

Comments
 (0)