Skip to content

Commit

Permalink
Merge pull request #927 from mbabker/silence-symfony-6.3-return-type-…
Browse files Browse the repository at this point in the history
…deprecations

Add return types to silence Symfony 6.3 deprecation notices
  • Loading branch information
goetas authored May 16, 2023
2 parents 0412a13 + 7b79a92 commit a48d2ba
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Debug/DataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(
$this->reset();
}

public function collect(Request $request, Response $response, \Throwable $exception = null)
public function collect(Request $request, Response $response, \Throwable $exception = null): void
{
}

Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AdjustDecorationPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
final class AdjustDecorationPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
DIUtils::adjustDecorators($container);
}
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/PerInstancePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
abstract class PerInstancePass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
foreach (self::getSerializers($container) as $scopedContainer) {
$this->processInstance($scopedContainer);
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/JMSSerializerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class JMSSerializerExtension extends Extension
/**
* {@inheritdoc}
*/
public function load(array $rawConfigs, ContainerBuilder $container)
public function load(array $rawConfigs, ContainerBuilder $container): void
{
$configs = $this->processNestedConfigs($rawConfigs, $container);

Expand Down
3 changes: 3 additions & 0 deletions JMSSerializerBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

class JMSSerializerBundle extends Bundle
{
/**
* @return void
*/
public function build(ContainerBuilder $builder)
{
$builder->addCompilerPass(new AssignVisitorsPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
Expand Down

0 comments on commit a48d2ba

Please sign in to comment.