| @@ -13,7 +13,6 @@ | ||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Util\ClassUtils; | 
| 15 | 15 | use Knp\Menu\FactoryInterface as MenuFactoryInterface; | 
| 16 | -use Knp\Menu\ItemInterface; | |
| 17 | 16 | use Knp\Menu\ItemInterface as MenuItemInterface; | 
| 18 | 17 | use Sonata\AdminBundle\Builder\DatagridBuilderInterface; | 
| 19 | 18 | use Sonata\AdminBundle\Builder\FormContractorInterface; | 
| @@ -2303,7 +2303,7 @@ discard block | ||
| 2303 | 2303 | * | 
| 2304 | 2304 | * @param string $context | 
| 2305 | 2305 | * | 
| 2306 | - * @return array | |
| 2306 | + * @return string[] | |
| 2307 | 2307 | */ | 
| 2308 | 2308 | public function getPermissionsShow($context) | 
| 2309 | 2309 |      { | 
| @@ -2546,7 +2546,7 @@ discard block | ||
| 2546 | 2546 | /** | 
| 2547 | 2547 | * Set custom per page options. | 
| 2548 | 2548 | * | 
| 2549 | - * @param array $options | |
| 2549 | + * @param integer[] $options | |
| 2550 | 2550 | */ | 
| 2551 | 2551 | public function setPerPageOptions(array $options): void | 
| 2552 | 2552 |      { | 
| @@ -2964,7 +2964,7 @@ discard block | ||
| 2964 | 2964 | * NEXT_MAJOR: remove this method. | 
| 2965 | 2965 | * | 
| 2966 | 2966 | * @param MenuItemInterface $menu | 
| 2967 | - * @param $action | |
| 2967 | + * @param string $action | |
| 2968 | 2968 | * @param AdminInterface $childAdmin | 
| 2969 | 2969 | * | 
| 2970 | 2970 | * @return mixed | 
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | 32 | /** | 
| 33 | - * @return array | |
| 33 | + * @return FieldDescriptionInterface[] | |
| 34 | 34 | */ | 
| 35 | 35 | public function getElements() | 
| 36 | 36 |      { | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | |
| 39 | 39 | /** | 
| 40 | 40 | * @param ModelManagerInterface $modelManager | 
| 41 | - * @param array|string $skeletonDirectories | |
| 41 | + * @param string $skeletonDirectories | |
| 42 | 42 | */ | 
| 43 | 43 | public function __construct(ModelManagerInterface $modelManager, $skeletonDirectories) | 
| 44 | 44 |      { | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | private $file; | 
| 32 | 32 | |
| 33 | 33 | /** | 
| 34 | - * @param array|string $skeletonDirectory | |
| 34 | + * @param string $skeletonDirectory | |
| 35 | 35 | */ | 
| 36 | 36 | public function __construct($skeletonDirectory) | 
| 37 | 37 |      { | 
| @@ -8,6 +8,9 @@ | ||
| 8 | 8 |  { | 
| 9 | 9 | protected $metadataClass = null; | 
| 10 | 10 | |
| 11 | + /** | |
| 12 | + * @param string $associationMapping | |
| 13 | + */ | |
| 11 | 14 | public function setParentAssociationMapping($associationMapping) | 
| 12 | 15 |      { | 
| 13 | 16 | $this->parentAssociationMapping = $associationMapping; | 
| @@ -102,7 +102,7 @@ | ||
| 102 | 102 | * @param string $class | 
| 103 | 103 | * @param string|null $property | 
| 104 | 104 | * @param QueryBuilder|null $query | 
| 105 | - * @param array $choices | |
| 105 | + * @param integer[] $choices | |
| 106 | 106 | */ | 
| 107 | 107 | public function __construct(ModelManagerInterface $modelManager, $class, $property = null, $query = null, $choices = [], PropertyAccessorInterface $propertyAccessor = null) | 
| 108 | 108 |      { | 
| @@ -122,7 +122,7 @@ discard block | ||
| 122 | 122 | /** | 
| 123 | 123 | * render a list element from the FieldDescription. | 
| 124 | 124 | * | 
| 125 | - * @param mixed $object | |
| 125 | + * @param \stdClass $object | |
| 126 | 126 | * @param FieldDescriptionInterface $fieldDescription | 
| 127 | 127 | * @param array $params | 
| 128 | 128 | * | 
| @@ -152,7 +152,7 @@ discard block | ||
| 152 | 152 | * render a view element. | 
| 153 | 153 | * | 
| 154 | 154 | * @param FieldDescriptionInterface $fieldDescription | 
| 155 | - * @param mixed $object | |
| 155 | + * @param \stdClass $object | |
| 156 | 156 | * | 
| 157 | 157 | * @return string | 
| 158 | 158 | */ | 
| @@ -291,7 +291,7 @@ discard block | ||
| 291 | 291 | /** | 
| 292 | 292 | * Get the identifiers as a string that is safe to use in a url. | 
| 293 | 293 | * | 
| 294 | - * @param object $model | |
| 294 | + * @param \stdClass $model | |
| 295 | 295 | * @param AdminInterface $admin | 
| 296 | 296 | * | 
| 297 | 297 | * @return string string representation of the id that is safe to use in a url | 
| @@ -316,7 +316,7 @@ discard block | ||
| 316 | 316 | /** | 
| 317 | 317 | * @param $type | 
| 318 | 318 | * | 
| 319 | - * @return string|bool | |
| 319 | + * @return string|false | |
| 320 | 320 | */ | 
| 321 | 321 | public function getXEditableType($type) | 
| 322 | 322 |      { | 
| @@ -447,7 +447,7 @@ discard block | ||
| 447 | 447 | * @param FieldDescriptionInterface $fieldDescription | 
| 448 | 448 | * @param string $defaultTemplate | 
| 449 | 449 | * | 
| 450 | - * @return \Twig_TemplateInterface | |
| 450 | + * @return \Twig_Template | |
| 451 | 451 | */ | 
| 452 | 452 | private function getTemplate( | 
| 453 | 453 | FieldDescriptionInterface $fieldDescription, | 
| @@ -20,7 +20,6 @@ | ||
| 20 | 20 | use Symfony\Component\Translation\TranslatorInterface; | 
| 21 | 21 | use Twig\Environment; | 
| 22 | 22 | use Twig\Extension\AbstractExtension; | 
| 23 | -use Twig\Template; | |
| 24 | 23 | use Twig\TwigFilter; | 
| 25 | 24 | |
| 26 | 25 | /** | 
| @@ -67,7 +67,7 @@ | ||
| 67 | 67 | } | 
| 68 | 68 | |
| 69 | 69 | /** | 
| 70 | - * @return ModelManagerInterface|\PHPUnit_Framework_MockObject_MockObject | |
| 70 | + * @return ModelManagerInterface | |
| 71 | 71 | */ | 
| 72 | 72 | private function createModelManagerMock() | 
| 73 | 73 |      { | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | /** | 
| 68 | 68 | * @param string $code | 
| 69 | 69 | * @param string $action | 
| 70 | - * @param array $parameters | |
| 70 | + * @param string[] $parameters | |
| 71 | 71 | * @param int $absolute | 
| 72 | 72 | * | 
| 73 | 73 | * @return string | 
| @@ -82,8 +82,8 @@ discard block | ||
| 82 | 82 | /** | 
| 83 | 83 | * @param string $code | 
| 84 | 84 | * @param string $action | 
| 85 | - * @param mixed $object | |
| 86 | - * @param array $parameters | |
| 85 | + * @param string $object | |
| 86 | + * @param string[] $parameters | |
| 87 | 87 | * @param int $absolute | 
| 88 | 88 | * | 
| 89 | 89 | * @return string | 
| @@ -96,8 +96,8 @@ discard block | ||
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 | /** | 
| 99 | - * @param $code | |
| 100 | - * @param $action | |
| 99 | + * @param string $code | |
| 100 | + * @param string $action | |
| 101 | 101 | * | 
| 102 | 102 | * @return array | 
| 103 | 103 | */ |