Skip to content

Commit

Permalink
minor #449 Fix symfony 6.3 return type deprecations (acrobat)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed May 22, 2023
2 parents 4d1af1e + 3b5a8a2 commit 5cfabc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class ValidateExtensionConfigurationPass implements CompilerPassInterface
* compiler pass.
*
* @param ContainerBuilder $container
*
* @return void
*/
public function process(ContainerBuilder $container)
{
Expand Down
3 changes: 3 additions & 0 deletions src/DependencyInjection/StofDoctrineExtensionsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class StofDoctrineExtensionsExtension extends Extension
private $entityManagers = array();
private $documentManagers = array();

/**
* @return void
*/
public function load(array $configs, ContainerBuilder $container)
{
$processor = new Processor();
Expand Down
2 changes: 2 additions & 0 deletions src/StofDoctrineExtensionsBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class StofDoctrineExtensionsBundle extends Bundle
{
/**
* {@inheritdoc}
*
* @return void
*/
public function build(ContainerBuilder $container)
{
Expand Down

0 comments on commit 5cfabc7

Please sign in to comment.