File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments