Skip to content

Commit

Permalink
Merge pull request #580 from delboy1978uk/feature/deprecation-fixes
Browse files Browse the repository at this point in the history
Add void return signatures to remove deprecation notices
  • Loading branch information
goetas authored Sep 26, 2023
2 parents 721bd83 + 7b58e8b commit 355cf5e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Command/ExtractTranslationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(ConfigFactory $configFactory, Updater $updater, arra
/**
* {@inheritdoc}
*/
protected function configure()
protected function configure(): void
{
$this
->setName('jms:translation:extract')
Expand Down
2 changes: 1 addition & 1 deletion Command/ResourcesListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(string $projectDir, array $bundles, ?string $rootDir
/**
* {@inheritdoc}
*/
protected function configure()
protected function configure(): void
{
$this
->setName('jms:translation:list-resources')
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/IntegrationPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class IntegrationPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('translation.loader.xliff')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/MountDumpersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class MountDumpersPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('jms_translation.file_writer')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/MountExtractorsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class MountExtractorsPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('jms_translation.extractor_manager')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/MountFileVisitorsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class MountFileVisitorsPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('jms_translation.extractor.file_extractor')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/MountLoadersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class MountLoadersPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('jms_translation.loader_manager')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/JMSTranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class JMSTranslationExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$config = $this->processConfiguration(new Configuration($container), $configs);

Expand Down
2 changes: 1 addition & 1 deletion JMSTranslationBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JMSTranslationBundle extends Bundle
{
const VERSION = '1.1.0-DEV';

public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new IntegrationPass());
$container->addCompilerPass(new MountFileVisitorsPass());
Expand Down

0 comments on commit 355cf5e

Please sign in to comment.