updated to Symfony 4.2 (#710)

This commit is contained in:
Kevin Papst
2019-04-21 01:41:08 +02:00
committed by GitHub
parent 32b36f42f0
commit f9c8028ea1
31 changed files with 1010 additions and 616 deletions

View File

@@ -20,12 +20,9 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
class DocumentationLinkExtension extends AbstractTypeExtension
{
/**
* @return string
*/
public function getExtendedType()
public static function getExtendedTypes(): iterable
{
return FormType::class;
return [FormType::class];
}
/**

View File

@@ -34,12 +34,9 @@ class EnhancedChoiceTypeExtension extends AbstractTypeExtension
$this->type = $type;
}
/**
* @return string
*/
public function getExtendedType()
public static function getExtendedTypes(): iterable
{
return EntityType::class;
return [EntityType::class];
}
/**

View File

@@ -34,12 +34,9 @@ class SelectWithApiDataExtension extends AbstractTypeExtension
$this->router = $router;
}
/**
* @return string
*/
public function getExtendedType()
public static function getExtendedTypes(): iterable
{
return EntityType::class;
return [EntityType::class];
}
/**