Skip to content

Commit

Permalink
Added missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshz authored and karser committed Dec 22, 2021
1 parent 2d910e2 commit 7b03c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
if (method_exists(TreeBuilder::class, 'getRootNode')) {
$treeBuilder = new TreeBuilder('karser_recaptcha3');
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/KarserRecaptcha3Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class KarserRecaptcha3Extension extends ConfigurableExtension implements PrependExtensionInterface
{
public function loadInternal(array $configs, ContainerBuilder $container)
public function loadInternal(array $configs, ContainerBuilder $container): void
{
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.php');
Expand All @@ -19,7 +19,7 @@ public function loadInternal(array $configs, ContainerBuilder $container)
}
}

public function prepend(ContainerBuilder $container)
public function prepend(ContainerBuilder $container): void
{
if ($container->hasExtension('twig')) {
// inject template
Expand Down

0 comments on commit 7b03c63

Please sign in to comment.