Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing return types for Symfony 6 support #76

Merged
merged 2 commits into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('symfonycasts_verify_email');
$rootNode = $treeBuilder->getRootNode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function load(array $configs, ContainerBuilder $container): void
$helperDefinition->replaceArgument(4, $config['lifetime']);
}

public function getAlias()
public function getAlias(): string
{
return 'symfonycasts_verify_email';
}
Expand Down
3 changes: 2 additions & 1 deletion src/SymfonyCastsVerifyEmailBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace SymfonyCasts\Bundle\VerifyEmail;

use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use SymfonyCasts\Bundle\VerifyEmail\DependencyInjection\SymfonyCastsVerifyEmailExtension;

Expand All @@ -18,7 +19,7 @@
*/
class SymfonyCastsVerifyEmailBundle extends Bundle
{
public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
if (null === $this->extension) {
$this->extension = new SymfonyCastsVerifyEmailExtension();
Expand Down
4 changes: 2 additions & 2 deletions tests/VerifyEmailTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
return $routes;
}

public function getCacheDir()
public function getCacheDir(): string
{
return sys_get_temp_dir().'/cache'.spl_object_hash($this);
}

public function getLogDir()
public function getLogDir(): string
{
return sys_get_temp_dir().'/logs'.spl_object_hash($this);
}
Expand Down