Skip to content

Commit 176b10c

Browse files
Add missing @return annotations to fix deprecations on PHP 8
1 parent 3347605 commit 176b10c

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Controller/AbstractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function setContainer(ContainerInterface $container): ?ContainerInterface
5858
/**
5959
* Gets a container parameter by its name.
6060
*
61-
* @return mixed
61+
* @return array|bool|float|int|string|null
6262
*
6363
* @final
6464
*/

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class Controller implements ContainerAwareInterface
3131
/**
3232
* Gets a container configuration parameter by its name.
3333
*
34-
* @return mixed
34+
* @return array|bool|float|int|string|null
3535
*
3636
* @final
3737
*/

Routing/LegacyRouteLoaderContainer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public function __construct(ContainerInterface $container, ContainerInterface $s
2929

3030
/**
3131
* {@inheritdoc}
32+
*
33+
* @return mixed
3234
*/
3335
public function get($id)
3436
{

Test/TestContainer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function getParameterBag(): ParameterBagInterface
5858

5959
/**
6060
* {@inheritdoc}
61+
*
62+
* @return array|bool|float|int|string|null
6163
*/
6264
public function getParameter($name)
6365
{

0 commit comments

Comments
 (0)