Skip to content

Commit

Permalink
[Rector] Applied all Symfony 5.x rectors to the production codebase
Browse files Browse the repository at this point in the history
Applied rules:
 * AddReturnTypeDeclarationRector
  • Loading branch information
alongosz committed Jul 19, 2024
1 parent c84b64f commit 3d55302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/bundle/DependencyInjection/IbexaSystemInfoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Ibexa\Bundle\SystemInfo\SystemInfo\Collector\IbexaSystemInfoCollector;
use Ibexa\Bundle\SystemInfo\SystemInfo\Value\IbexaSystemInfo;
use Ibexa\Contracts\Core\Ibexa;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
Expand All @@ -24,12 +25,12 @@ class IbexaSystemInfoExtension extends Extension implements PrependExtensionInte
public const METRICS_TAG = 'ibexa.system_info.metrics';
public const SERVICE_TAG = 'ibexa.system_info.service';

public function getAlias()
public function getAlias(): string
{
return self::EXTENSION_NAME;
}

public function getConfiguration(array $config, ContainerBuilder $container)
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
{
return new Configuration();
}
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/EventSubscriber/AddXPoweredByHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $installationName)
$this->installationName = $installationName;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [KernelEvents::RESPONSE => 'promotePlatform'];
}
Expand Down

0 comments on commit 3d55302

Please sign in to comment.