Skip to content

Commit 5cfabc7

Browse files
committed
minor #449 Fix symfony 6.3 return type deprecations (acrobat)
This PR was merged into the 1.x-dev branch. Discussion ---------- Fix symfony 6.3 return type deprecations > Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "Stof\DoctrineExtensionsBundle\DependencyInjection\StofDoctrineExtensionsExtension" now to avoid errors or add an explicit `@return` annotation to suppress this message. > Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "Stof\DoctrineExtensionsBundle\DependencyInjection\Compiler\ValidateExtensionConfigurationPass" now to avoid errors or add an explicit `@return` annotation to suppress this message. > User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle" now to avoid errors or add an explicit `@return` annotation to suppress this message. Commits ------- 3b5a8a2 Fix symfony 6.3 return type deprecations
2 parents 4d1af1e + 3b5a8a2 commit 5cfabc7

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/DependencyInjection/Compiler/ValidateExtensionConfigurationPass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class ValidateExtensionConfigurationPass implements CompilerPassInterface
1818
* compiler pass.
1919
*
2020
* @param ContainerBuilder $container
21+
*
22+
* @return void
2123
*/
2224
public function process(ContainerBuilder $container)
2325
{

src/DependencyInjection/StofDoctrineExtensionsExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class StofDoctrineExtensionsExtension extends Extension
1414
private $entityManagers = array();
1515
private $documentManagers = array();
1616

17+
/**
18+
* @return void
19+
*/
1720
public function load(array $configs, ContainerBuilder $container)
1821
{
1922
$processor = new Processor();

src/StofDoctrineExtensionsBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class StofDoctrineExtensionsBundle extends Bundle
1010
{
1111
/**
1212
* {@inheritdoc}
13+
*
14+
* @return void
1315
*/
1416
public function build(ContainerBuilder $container)
1517
{

0 commit comments

Comments
 (0)