Fixed some deprecations.

This commit is contained in:
Jan Böhmer 2022-08-14 19:09:07 +02:00
parent 4fa8eef1bf
commit 5fd608f42a
59 changed files with 202 additions and 165 deletions

View file

@ -28,12 +28,16 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
class IconLinkColumn extends AbstractColumn
{
/**
* @param $value
* @return mixed
*/
public function normalize($value)
{
return $value;
}
public function configureOptions(OptionsResolver $resolver)
public function configureOptions(OptionsResolver $resolver): self
{
parent::configureOptions($resolver);
$resolver->setDefaults([
@ -51,7 +55,7 @@ class IconLinkColumn extends AbstractColumn
return $this;
}
public function render($value, $context)
public function render($value, $context): string
{
$href = $this->getHref($value, $context);
$icon = $this->getIcon($value, $context);