Skip to content

Commit 96a52d1

Browse files
authored
fix(symfony): Fix deprecation for Symfony 6.3 (#166)
Co-authored-by: jmsche <[email protected]>
1 parent 6f8e1b7 commit 96a52d1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fix deprecation for Symfony 6.3
13+
1014
## 1.8.2 - 2023-05-10
1115

1216
### Fixed

src/Bridge/Symfony/DependencyInjection/ElasticallyExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
class ElasticallyExtension extends Extension
2626
{
27-
public function load(array $configs, ContainerBuilder $container)
27+
public function load(array $configs, ContainerBuilder $container): void
2828
{
2929
$config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs);
3030
$loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__) . '/Resources/config'));
@@ -43,7 +43,7 @@ public function load(array $configs, ContainerBuilder $container)
4343
}
4444
}
4545

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

0 commit comments

Comments
 (0)