@@ -766,7 +766,7 @@ class ClassMetadata implements PersistenceClassMetadata, Stringable
766
766
767
767
private InstantiatorInterface |null $ instantiator = null ;
768
768
769
- private TypedFieldMapper $ typedFieldMapper ;
769
+ private readonly TypedFieldMapper $ typedFieldMapper ;
770
770
771
771
/**
772
772
* Initializes a new ClassMetadata instance that will hold the object-relational mapping
@@ -1162,7 +1162,7 @@ public function validateLifecycleCallbacks(ReflectionService $reflService): void
1162
1162
*
1163
1163
* Can return null when using static reflection, in violation of the LSP
1164
1164
*/
1165
- public function getReflectionClass ()
1165
+ public function getReflectionClass (): ReflectionClass | null
1166
1166
{
1167
1167
return $ this ->reflClass ;
1168
1168
}
@@ -1486,7 +1486,7 @@ protected function validateAndCompleteFieldMapping(array $mapping): array
1486
1486
*
1487
1487
* @throws MappingException If something is wrong with the mapping.
1488
1488
*/
1489
- protected function _validateAndCompleteAssociationMapping (array $ mapping )
1489
+ protected function _validateAndCompleteAssociationMapping (array $ mapping ): array
1490
1490
{
1491
1491
if (! isset ($ mapping ['mappedBy ' ])) {
1492
1492
$ mapping ['mappedBy ' ] = null ;
@@ -1640,7 +1640,7 @@ protected function _validateAndCompleteAssociationMapping(array $mapping)
1640
1640
* @throws RuntimeException
1641
1641
* @throws MappingException
1642
1642
*/
1643
- protected function _validateAndCompleteOneToOneMapping (array $ mapping )
1643
+ protected function _validateAndCompleteOneToOneMapping (array $ mapping ): array
1644
1644
{
1645
1645
$ mapping = $ this ->_validateAndCompleteAssociationMapping ($ mapping );
1646
1646
@@ -1745,7 +1745,7 @@ protected function _validateAndCompleteOneToOneMapping(array $mapping)
1745
1745
* @throws MappingException
1746
1746
* @throws InvalidArgumentException
1747
1747
*/
1748
- protected function _validateAndCompleteOneToManyMapping (array $ mapping )
1748
+ protected function _validateAndCompleteOneToManyMapping (array $ mapping ): array
1749
1749
{
1750
1750
$ mapping = $ this ->_validateAndCompleteAssociationMapping ($ mapping );
1751
1751
@@ -1795,7 +1795,7 @@ protected function _validateAndCompleteOneToManyMapping(array $mapping)
1795
1795
*
1796
1796
* @throws InvalidArgumentException
1797
1797
*/
1798
- protected function _validateAndCompleteManyToManyMapping (array $ mapping )
1798
+ protected function _validateAndCompleteManyToManyMapping (array $ mapping ): array
1799
1799
{
1800
1800
$ mapping = $ this ->_validateAndCompleteAssociationMapping ($ mapping );
1801
1801
@@ -1970,7 +1970,7 @@ public function getColumnNames(array|null $fieldNames = null): array
1970
1970
return array_keys ($ this ->fieldNames );
1971
1971
}
1972
1972
1973
- return array_values (array_map ([ $ this , ' getColumnName ' ] , $ fieldNames ));
1973
+ return array_values (array_map ($ this -> getColumnName (...) , $ fieldNames ));
1974
1974
}
1975
1975
1976
1976
/**
0 commit comments