|
41 | 41 | /** |
42 | 42 | * @see https://wiki.php.net/rfc/internal_method_return_types#proposal |
43 | 43 | */ |
44 | | -final class PhpDocFromTypeDeclarationDecorator |
| 44 | +final readonly class PhpDocFromTypeDeclarationDecorator |
45 | 45 | { |
46 | 46 | /** |
47 | 47 | * @var ClassMethodWillChangeReturnType[] |
48 | 48 | */ |
49 | | - private array $classMethodWillChangeReturnTypes = []; |
| 49 | + private array $classMethodWillChangeReturnTypes; |
50 | 50 |
|
51 | 51 | public function __construct( |
52 | | - private readonly StaticTypeMapper $staticTypeMapper, |
53 | | - private readonly PhpDocInfoFactory $phpDocInfoFactory, |
54 | | - private readonly NodeNameResolver $nodeNameResolver, |
55 | | - private readonly PhpDocTypeChanger $phpDocTypeChanger, |
56 | | - private readonly PhpAttributeGroupFactory $phpAttributeGroupFactory, |
57 | | - private readonly ReflectionResolver $reflectionResolver, |
58 | | - private readonly PhpAttributeAnalyzer $phpAttributeAnalyzer, |
59 | | - private readonly PhpVersionProvider $phpVersionProvider, |
60 | | - private readonly AstResolver $astResolver |
| 52 | + private StaticTypeMapper $staticTypeMapper, |
| 53 | + private PhpDocInfoFactory $phpDocInfoFactory, |
| 54 | + private NodeNameResolver $nodeNameResolver, |
| 55 | + private PhpDocTypeChanger $phpDocTypeChanger, |
| 56 | + private PhpAttributeGroupFactory $phpAttributeGroupFactory, |
| 57 | + private ReflectionResolver $reflectionResolver, |
| 58 | + private PhpAttributeAnalyzer $phpAttributeAnalyzer, |
| 59 | + private PhpVersionProvider $phpVersionProvider, |
| 60 | + private AstResolver $astResolver |
61 | 61 | ) { |
62 | 62 | $this->classMethodWillChangeReturnTypes = [ |
63 | 63 | // @todo how to make list complete? is the method list needed or can we use just class names? |
|
0 commit comments