Skip to content

Commit

Permalink
[Rector] Applied all Symfony 5.x rectors to the production codebase (#30
Browse files Browse the repository at this point in the history
)

Applied rules:
 * AddReturnTypeDeclarationRector
  • Loading branch information
alongosz authored Aug 9, 2024
1 parent 105bf49 commit cab6b53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class Configuration extends SiteAccessConfiguration
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder(IbexaDesignEngineExtension::EXTENSION_NAME);

Expand Down
5 changes: 3 additions & 2 deletions src/bundle/DependencyInjection/IbexaDesignEngineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace Ibexa\Bundle\DesignEngine\DependencyInjection;

use Ibexa\Bundle\Core\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
Expand All @@ -17,12 +18,12 @@ class IbexaDesignEngineExtension extends Extension
{
public const EXTENSION_NAME = 'ibexa_design_engine';

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
3 changes: 2 additions & 1 deletion src/bundle/IbexaDesignEngineBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Ibexa\Bundle\DesignEngine\DependencyInjection\IbexaDesignEngineExtension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class IbexaDesignEngineBundle extends Bundle
Expand All @@ -32,7 +33,7 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new AssetPathResolutionPass(), PassConfig::TYPE_OPTIMIZE);
}

public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
if (!isset($this->extension)) {
$this->extension = new IbexaDesignEngineExtension();
Expand Down

0 comments on commit cab6b53

Please sign in to comment.