Skip to content

Commit 8e7311c

Browse files
committed
add return type hints to EntityFactory
1 parent 720fe98 commit 8e7311c

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
6.4
55
---
66

7+
* [BC BREAK] Add return type-hints to `EntityFactory`
78
* Deprecate `DbalLogger`, use a middleware instead
89
* Deprecate not constructing `DoctrineDataCollector` with an instance of `DebugDataHolder`
910
* Deprecate `DoctrineDataCollector::addLogger()`, use a `DebugDataHolder` instead

DependencyInjection/Security/UserProvider/EntityFactory.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
/**
2020
* EntityFactory creates services for Doctrine user provider.
2121
*
22+
* @final since Symfony 6.4
23+
*
2224
* @author Fabien Potencier <fabien@symfony.com>
2325
* @author Christophe Coevoet <stof@notk.org>
2426
*/
@@ -30,10 +32,7 @@ public function __construct(
3032
) {
3133
}
3234

33-
/**
34-
* @return void
35-
*/
36-
public function create(ContainerBuilder $container, string $id, array $config)
35+
public function create(ContainerBuilder $container, string $id, array $config): void
3736
{
3837
$container
3938
->setDefinition($id, new ChildDefinition($this->providerId))
@@ -43,18 +42,12 @@ public function create(ContainerBuilder $container, string $id, array $config)
4342
;
4443
}
4544

46-
/**
47-
* @return string
48-
*/
49-
public function getKey()
45+
public function getKey(): string
5046
{
5147
return $this->key;
5248
}
5349

54-
/**
55-
* @return void
56-
*/
57-
public function addConfiguration(NodeDefinition $node)
50+
public function addConfiguration(NodeDefinition $node): void
5851
{
5952
$node
6053
->children()

0 commit comments

Comments
 (0)