From f8aac5747ca6e5bdd7550569539db98ae53b86c9 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Thu, 5 Oct 2017 15:27:49 +0200 Subject: [PATCH] Update interface. --- src/Alias/DefaultAliasFilter.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Alias/DefaultAliasFilter.php b/src/Alias/DefaultAliasFilter.php index 3fe9e70..12247f9 100644 --- a/src/Alias/DefaultAliasFilter.php +++ b/src/Alias/DefaultAliasFilter.php @@ -8,6 +8,8 @@ * */ +declare(strict_types=1); + namespace Netzmacht\Contao\Leaflet\Alias; use Netzmacht\Contao\Toolkit\Data\Alias\Filter\AbstractFilter; @@ -42,7 +44,7 @@ class DefaultAliasFilter extends AbstractFilter /** * {@inheritdoc} */ - public function repeatUntilValid() + public function repeatUntilValid(): bool { return false; } @@ -50,7 +52,7 @@ class DefaultAliasFilter extends AbstractFilter /** * {@inheritdoc} */ - public function apply($model, $value, $separator) + public function apply($model, $value, string $separator): string { if (!$value) { return $this->prefix . $separator . $model->id;