diff --git a/src/FieldDescription/BaseFieldDescription.php b/src/FieldDescription/BaseFieldDescription.php index 980c5c4f5c..af56de9ce3 100644 --- a/src/FieldDescription/BaseFieldDescription.php +++ b/src/FieldDescription/BaseFieldDescription.php @@ -329,9 +329,6 @@ final public function getMappingType(): int|string|null return $this->mappingType; } - /** - * @return string|false|null - */ final public function getLabel(): string|false|null { return $this->getOption('label'); @@ -384,8 +381,6 @@ abstract protected function setParentAssociationMappings(array $parentAssociatio /** * @throws NoValueException - * - * @return mixed */ final protected function getFieldValue(?object $object, string $fieldName): mixed { diff --git a/src/Filter/Model/FilterData.php b/src/Filter/Model/FilterData.php index 3e70403b08..31ea2ce29c 100644 --- a/src/Filter/Model/FilterData.php +++ b/src/Filter/Model/FilterData.php @@ -56,9 +56,6 @@ public static function fromArray(array $data): self return new self($type, \array_key_exists('value', $data), $data['value'] ?? null); } - /** - * @return mixed - */ public function getValue(): mixed { if (!$this->hasValue) { diff --git a/src/Form/Extension/Field/Type/FormTypeFieldExtension.php b/src/Form/Extension/Field/Type/FormTypeFieldExtension.php index c838f7a8df..be7324e04e 100644 --- a/src/Form/Extension/Field/Type/FormTypeFieldExtension.php +++ b/src/Form/Extension/Field/Type/FormTypeFieldExtension.php @@ -201,8 +201,6 @@ public function configureOptions(OptionsResolver $resolver): void * * return the value related to FieldDescription, if the associated object does no * exists => a temporary one is created. - * - * @return mixed */ public function getValueFromFieldDescription(?object $object, FieldDescriptionInterface $fieldDescription): mixed { diff --git a/src/Mapper/BaseGroupedMapper.php b/src/Mapper/BaseGroupedMapper.php index a318cdf9c7..e49dc80586 100644 --- a/src/Mapper/BaseGroupedMapper.php +++ b/src/Mapper/BaseGroupedMapper.php @@ -44,8 +44,6 @@ abstract class BaseGroupedMapper implements MapperInterface * @param array $options * * @throws \LogicException - * - * @return static */ final public function with(string $name, array $options = []): static { @@ -167,8 +165,6 @@ final public function with(string $name, array $options = []): static /** * Only nested add if the condition match true. - * - * @return static */ final public function ifTrue(bool $bool): static { @@ -179,8 +175,6 @@ final public function ifTrue(bool $bool): static /** * Only nested add if the condition match false. - * - * @return static */ final public function ifFalse(bool $bool): static { @@ -191,8 +185,6 @@ final public function ifFalse(bool $bool): static /** * @throws \LogicException - * - * @return static */ final public function ifEnd(): static { @@ -209,8 +201,6 @@ final public function ifEnd(): static * Add new tab. * * @param array $options - * - * @return static */ final public function tab(string $name, array $options = []): static { @@ -221,8 +211,6 @@ final public function tab(string $name, array $options = []): static * Close the current group or tab. * * @throws \LogicException - * - * @return static */ final public function end(): static { @@ -255,8 +243,6 @@ final public function hasOpenTab(): bool * @param string $group The group to delete * @param string $tab The tab the group belongs to, defaults to 'default' * @param bool $deleteEmptyTab Whether or not the Tab should be deleted, when the deleted group leaves the tab empty after deletion - * - * @return static */ final public function removeGroup(string $group, string $tab = 'default', bool $deleteEmptyTab = false): static { @@ -292,8 +278,6 @@ final public function removeGroup(string $group, string $tab = 'default', bool $ /** * Removes a tab. - * - * @return static */ final public function removeTab(string $tab): static { diff --git a/src/Route/RouteCollection.php b/src/Route/RouteCollection.php index 1556ccae82..01bee205b8 100644 --- a/src/Route/RouteCollection.php +++ b/src/Route/RouteCollection.php @@ -148,8 +148,6 @@ public function restore(string $name): RouteCollectionInterface /** * @param string|string[] $routeList - * - * @return static */ public function clearExcept($routeList): static { diff --git a/src/SonataConfiguration.php b/src/SonataConfiguration.php index b5375be781..32fbfa4e5e 100644 --- a/src/SonataConfiguration.php +++ b/src/SonataConfiguration.php @@ -66,9 +66,6 @@ public function getLogo(): string return $this->logo; } - /** - * @return mixed - */ public function getOption(string $name, mixed $default = null): mixed { return $this->options[$name] ?? $default; diff --git a/src/Twig/Extension/RenderElementExtension.php b/src/Twig/Extension/RenderElementExtension.php index 6f4a9dce98..538c918081 100644 --- a/src/Twig/Extension/RenderElementExtension.php +++ b/src/Twig/Extension/RenderElementExtension.php @@ -146,8 +146,6 @@ public function renderViewElementCompare( * @deprecated since sonata-project/admin-bundle version 4.7 use RenderElementRuntime::renderRelationElement() instead * * @throws \RuntimeException - * - * @return mixed */ public function renderRelationElement(mixed $element, FieldDescriptionInterface $fieldDescription): mixed { diff --git a/src/Twig/RenderElementRuntime.php b/src/Twig/RenderElementRuntime.php index 629908578f..5aa7b61c02 100644 --- a/src/Twig/RenderElementRuntime.php +++ b/src/Twig/RenderElementRuntime.php @@ -125,8 +125,6 @@ public function renderViewElementCompare( /** * @throws \RuntimeException - * - * @return mixed */ public function renderRelationElement(mixed $element, FieldDescriptionInterface $fieldDescription): mixed { diff --git a/src/Util/AdminObjectAclManipulator.php b/src/Util/AdminObjectAclManipulator.php index 3e315d4cad..a43f33e83e 100644 --- a/src/Util/AdminObjectAclManipulator.php +++ b/src/Util/AdminObjectAclManipulator.php @@ -22,7 +22,6 @@ use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Exception\NoAceFoundException; -use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; use Symfony\Component\Security\Acl\Permission\MaskBuilderInterface; use Symfony\Component\Security\Core\User\UserInterface; @@ -226,8 +225,6 @@ private function buildForm(AdminObjectAclData $data, FormBuilderInterface $formB /** * Gets a user or a role security identity. - * - * @return RoleSecurityIdentity|UserSecurityIdentity */ private function getSecurityIdentity(string|UserInterface $aclValue): RoleSecurityIdentity|UserSecurityIdentity { diff --git a/tests/Datagrid/PagerTest.php b/tests/Datagrid/PagerTest.php index 6f2c9d650f..0dfd7e7ebb 100644 --- a/tests/Datagrid/PagerTest.php +++ b/tests/Datagrid/PagerTest.php @@ -226,8 +226,6 @@ public function testGetPreviousPage(): void /** * @param mixed[] $args - * - * @return mixed */ protected function callMethod(object $obj, string $name, array $args = []): mixed { diff --git a/tests/FieldDescription/BaseFieldDescriptionTest.php b/tests/FieldDescription/BaseFieldDescriptionTest.php index 1670d4048d..4cf20fd8b7 100644 --- a/tests/FieldDescription/BaseFieldDescriptionTest.php +++ b/tests/FieldDescription/BaseFieldDescriptionTest.php @@ -268,8 +268,6 @@ public function testGetTranslationDomainWithFalse(): void /** * @param mixed[] $args - * - * @return mixed */ protected function callMethod(object $obj, string $name, array $args = []): mixed {