Skip to content

Commit

Permalink
Merge pull request #15 from morawskim/deprecations
Browse files Browse the repository at this point in the history
Add "void" as return type, which fix deprecation notices
  • Loading branch information
teiling88 authored Nov 28, 2023
2 parents 1e898a1 + fe31371 commit 931972f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/DependencyInjection/CompilerPass/ActivatorPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ActivatorPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$bag = $container->getDefinition('flagception.activator.chain_activator');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ContextDecoratorPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$bag = $container->getDefinition('flagception.decorator.chain_decorator');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExpressionProviderPass implements CompilerPassInterface
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$factory = $container->getDefinition('flagception.factory.expression_language_factory');

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/FlagceptionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FlagceptionExtension extends Extension
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('configurators.yml');
Expand Down
2 changes: 1 addition & 1 deletion src/FlagceptionBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FlagceptionBundle extends Bundle
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
parent::build($container);

Expand Down
4 changes: 2 additions & 2 deletions src/Profiler/FeatureDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(ChainActivator $chainActivator, ChainDecorator $chai
/**
* {@inheritdoc}
*/
public function collect(Request $request, Response $response, Throwable $exception = null)
public function collect(Request $request, Response $response, Throwable $exception = null): void
{
$this->data = [
'summary' => [
Expand Down Expand Up @@ -200,7 +200,7 @@ public function getName(): string
/**
* {@inheritdoc}
*/
public function reset()
public function reset(): void
{
$this->data = [];
}
Expand Down

0 comments on commit 931972f

Please sign in to comment.