Update interface.

This commit is contained in:
David Molineus
2017-10-05 15:27:49 +02:00
parent 540680f7f6
commit f8aac5747c

View File

@@ -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;