@@ -135,7 +135,7 @@ |
||
| 135 | 135 | /** |
| 136 | 136 | * Internal function for `configurationObjectAfter()` |
| 137 | 137 | * |
| 138 | - * @param mixed $value Current value (object/array). |
|
| 138 | + * @param \Romm\ConfigurationObject\ConfigurationObjectInterface $value Current value (object/array). |
|
| 139 | 139 | * @param array $path Current property path. |
| 140 | 140 | * @param string $type Type of object to convert. |
| 141 | 141 | * @param object $lastObject Internal use. |
@@ -81,6 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * @inheritdoc |
| 84 | + * @param string $targetType |
|
| 84 | 85 | */ |
| 85 | 86 | public function convert($source, $targetType, PropertyMappingConfigurationInterface $configuration = null) |
| 86 | 87 | { |
@@ -103,6 +104,7 @@ discard block |
||
| 103 | 104 | * Will recursively fill all the properties of the configuration object. |
| 104 | 105 | * |
| 105 | 106 | * @inheritdoc |
| 107 | + * @param string $targetType |
|
| 106 | 108 | */ |
| 107 | 109 | protected function doMapping($source, $targetType, PropertyMappingConfigurationInterface $configuration, &$currentPropertyPath) |
| 108 | 110 | { |
@@ -219,7 +221,7 @@ discard block |
||
| 219 | 221 | * function `getInstanceClassName()`. |
| 220 | 222 | * |
| 221 | 223 | * @param mixed $source |
| 222 | - * @param mixed $targetType |
|
| 224 | + * @param string $targetType |
|
| 223 | 225 | * @param array $currentPropertyPath |
| 224 | 226 | * @return ConfigurationObjectInterface |
| 225 | 227 | */ |
@@ -249,7 +251,7 @@ discard block |
||
| 249 | 251 | * check the interfaces of the class. |
| 250 | 252 | * |
| 251 | 253 | * @param mixed $source |
| 252 | - * @param mixed $targetType |
|
| 254 | + * @param ConfigurationObjectInterface $targetType |
|
| 253 | 255 | * @param array $currentPropertyPath |
| 254 | 256 | * @return array |
| 255 | 257 | */ |
@@ -277,7 +279,7 @@ discard block |
||
| 277 | 279 | * |
| 278 | 280 | * @param mixed $source |
| 279 | 281 | * @param mixed $targetType |
| 280 | - * @param mixed $configuration |
|
| 282 | + * @param PropertyMappingConfigurationInterface $configuration |
|
| 281 | 283 | * @return TypeConverterInterface |
| 282 | 284 | * @throws TypeConverterException |
| 283 | 285 | */ |
@@ -320,13 +322,17 @@ discard block |
||
| 320 | 322 | /** |
| 321 | 323 | * Internal function that fetches the properties of a class. |
| 322 | 324 | * |
| 323 | - * @param $targetType |
|
| 325 | + * @param string $targetType |
|
| 324 | 326 | * @return array |
| 325 | 327 | */ |
| 326 | 328 | protected function getProperties($targetType) |
| 327 | 329 | { |
| 328 | 330 | $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties(); |
| 329 | 331 | $propertiesKeys = array_map( |
| 332 | + |
|
| 333 | + /** |
|
| 334 | + * @param string $propertyReflection |
|
| 335 | + */ |
|
| 330 | 336 | function (PropertyReflection $propertyReflection) { |
| 331 | 337 | return $propertyReflection->getName(); |
| 332 | 338 | }, |
@@ -268,7 +268,7 @@ |
||
| 268 | 268 | /** |
| 269 | 269 | * Returns the class schema for the given class |
| 270 | 270 | * |
| 271 | - * @param mixed $classNameOrObject The class name or an object |
|
| 271 | + * @param string $classNameOrObject The class name or an object |
|
| 272 | 272 | * @return ClassSchema |
| 273 | 273 | */ |
| 274 | 274 | public function getClassSchema($classNameOrObject) |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use Romm\ConfigurationObject\Validation\Validator\Internal\ConfigurationObjectValidator; |
| 22 | 22 | use Romm\ConfigurationObject\Validation\Validator\Internal\MixedTypeCollectionValidator; |
| 23 | 23 | use Romm\ConfigurationObject\Validation\Validator\Internal\MixedTypeValidator; |
| 24 | -use TYPO3\CMS\Extbase\Reflection\ReflectionService as ExtbaseReflectionService; |
|
| 25 | 24 | use TYPO3\CMS\Extbase\Validation\Validator\CollectionValidator; |
| 26 | 25 | use TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator; |
| 27 | 26 | use TYPO3\CMS\Extbase\Validation\Validator\GenericObjectValidator; |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | |
| 17 | 17 | use Romm\ConfigurationObject\Legacy\Reflection\ReflectionService; |
| 18 | 18 | use TYPO3\CMS\Core\Utility\ClassNamingUtility; |
| 19 | -use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
| 20 | 19 | use TYPO3\CMS\Extbase\Utility\TypeHandlingUtility; |
| 21 | 20 | use TYPO3\CMS\Extbase\Validation\Exception\NoSuchValidatorException; |
| 22 | 21 | use TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator; |