Skip to content

Commit

Permalink
fix(symfony): Fix deprecation for Symfony 6.3 (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: jmsche <contact@jmsche.fr>
  • Loading branch information
jmsche and jmsche committed May 26, 2023
1 parent 6f8e1b7 commit 96a52d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix deprecation for Symfony 6.3

## 1.8.2 - 2023-05-10

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class ElasticallyExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs);
$loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__) . '/Resources/config'));
Expand All @@ -43,7 +43,7 @@ public function load(array $configs, ContainerBuilder $container)
}
}

private function buildConnection(string $name, array $config, bool $isDefaultConnection, ContainerBuilder $container)
private function buildConnection(string $name, array $config, bool $isDefaultConnection, ContainerBuilder $container): void
{
$indexNameMapper = new ChildDefinition('elastically.abstract.index_name_mapper');
$indexNameMapper->replaceArgument('$prefix', $config['prefix']);
Expand Down

0 comments on commit 96a52d1

Please sign in to comment.