Skip to content

Commit

Permalink
Fix Symfony deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Dec 1, 2021
1 parent 6be78dc commit 56a616c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Configuration implements ConfigurationInterface
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('joli_typo');
$rootNode = $this->getRootNode($treeBuilder, 'joli_typo');
Expand Down
4 changes: 2 additions & 2 deletions src/JoliTypo/Bridge/Twig/JoliTypoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public function __construct($presets)
$this->presets = $presets;
}

public function getFunctions()
public function getFunctions(): array
{
return [
new \Twig\TwigFunction('jolitypo', [$this, 'translate']),
];
}

public function getFilters()
public function getFilters(): array
{
return [
new \Twig\TwigFilter('jolitypo', [$this, 'translate'], ['pre_escape' => 'html', 'is_safe' => ['html']]),
Expand Down
6 changes: 3 additions & 3 deletions tests/JoliTypo/Tests/Bridge/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class AppKernel extends Kernel
{
public function registerBundles()
public function registerBundles(): iterable
{
$bundles = [
new FrameworkBundle(),
Expand Down Expand Up @@ -54,12 +54,12 @@ public function registerContainerConfiguration(LoaderInterface $loader)
}
}

public function getCacheDir()
public function getCacheDir(): string
{
return '/tmp/jolitypo/cache/'.$this->environment;
}

public function getLogDir()
public function getLogDir(): string
{
return '/tmp/jolitypo/logs/'.$this->environment;
}
Expand Down

0 comments on commit 56a616c

Please sign in to comment.