Skip to content

Commit 26d15c8

Browse files
Merge branch '7.4' into 8.0
* 7.4: [FrameworkBundle] Expose share directory in AboutCommand Move readonly keyword from class to properties
2 parents 3f3a41e + b120ed9 commit 26d15c8

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

TypeResolver/PhpDocAwareReflectionTypeResolver.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
*
3131
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
3232
*/
33-
final readonly class PhpDocAwareReflectionTypeResolver implements TypeResolverInterface
33+
final class PhpDocAwareReflectionTypeResolver implements TypeResolverInterface
3434
{
35-
private PhpDocParser $phpDocParser;
36-
private Lexer $lexer;
35+
private readonly PhpDocParser $phpDocParser;
36+
private readonly Lexer $lexer;
3737

3838
public function __construct(
39-
private TypeResolverInterface $reflectionTypeResolver,
40-
private TypeResolverInterface $stringTypeResolver,
41-
private TypeContextFactory $typeContextFactory,
39+
private readonly TypeResolverInterface $reflectionTypeResolver,
40+
private readonly TypeResolverInterface $stringTypeResolver,
41+
private readonly TypeContextFactory $typeContextFactory,
4242
?PhpDocParser $phpDocParser = null,
4343
?Lexer $lexer = null,
4444
) {

TypeResolver/ReflectionParameterTypeResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2323
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2424
*/
25-
final readonly class ReflectionParameterTypeResolver implements TypeResolverInterface
25+
final class ReflectionParameterTypeResolver implements TypeResolverInterface
2626
{
2727
public function __construct(
28-
private ReflectionTypeResolver $reflectionTypeResolver,
29-
private TypeContextFactory $typeContextFactory,
28+
private readonly ReflectionTypeResolver $reflectionTypeResolver,
29+
private readonly TypeContextFactory $typeContextFactory,
3030
) {
3131
}
3232

TypeResolver/ReflectionPropertyTypeResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2323
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2424
*/
25-
final readonly class ReflectionPropertyTypeResolver implements TypeResolverInterface
25+
final class ReflectionPropertyTypeResolver implements TypeResolverInterface
2626
{
2727
public function __construct(
28-
private ReflectionTypeResolver $reflectionTypeResolver,
29-
private TypeContextFactory $typeContextFactory,
28+
private readonly ReflectionTypeResolver $reflectionTypeResolver,
29+
private readonly TypeContextFactory $typeContextFactory,
3030
) {
3131
}
3232

TypeResolver/ReflectionReturnTypeResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2323
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2424
*/
25-
final readonly class ReflectionReturnTypeResolver implements TypeResolverInterface
25+
final class ReflectionReturnTypeResolver implements TypeResolverInterface
2626
{
2727
public function __construct(
28-
private ReflectionTypeResolver $reflectionTypeResolver,
29-
private TypeContextFactory $typeContextFactory,
28+
private readonly ReflectionTypeResolver $reflectionTypeResolver,
29+
private readonly TypeContextFactory $typeContextFactory,
3030
) {
3131
}
3232

TypeResolver/TypeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
2525
* @author Baptiste Leduc <baptiste.leduc@gmail.com>
2626
*/
27-
final readonly class TypeResolver implements TypeResolverInterface
27+
final class TypeResolver implements TypeResolverInterface
2828
{
2929
/**
3030
* @param ContainerInterface $resolvers Locator of type resolvers, keyed by supported subject type
3131
*/
3232
public function __construct(
33-
private ContainerInterface $resolvers,
33+
private readonly ContainerInterface $resolvers,
3434
) {
3535
}
3636

0 commit comments

Comments
 (0)