Skip to content

Commit

Permalink
Add missing typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
janlam7 committed Jun 6, 2024
1 parent 0883046 commit be3af5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Loader/EnumLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(YamlFileLoader $yml_loader)
/**
* {@inheritdoc}
*/
public function load($resource, $locale, $domain = 'messages')
public function load($resource, $locale, $domain = 'messages'): MessageCatalogue
{
if (!class_exists($domain)) {
throw new \RuntimeException(sprintf("Could not load constants for a class '%s'.", $domain));
Expand Down
6 changes: 3 additions & 3 deletions test/Functional/Fixtures/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestKernel extends Kernel
/**
* {@inheritdoc}
*/
public function registerBundles()
public function registerBundles(): iterable
{
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Expand All @@ -29,12 +29,12 @@ public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load(__DIR__ . '/config/config.yml');
}

public function getCacheDir()
public function getCacheDir(): string
{
return dirname(__DIR__) . '/../../var/cache';
}

public function getLogDir()
public function getLogDir(): string
{
return dirname(__DIR__) . '/../../var/logs';
}
Expand Down

0 comments on commit be3af5b

Please sign in to comment.