Fix Interface syntax to be comptatible with legacy code

This commit is contained in:
Jean-Francois Monfort 2021-02-18 09:00:13 +01:00
parent c8507b4a13
commit dca993834b

View File

@ -18,7 +18,7 @@ interface DirectExportInterface extends ExportElementInterface
* *
* @return string * @return string
*/ */
public function getDescription(): string; public function getDescription();
/** /**
* Generate the export * Generate the export
@ -28,12 +28,12 @@ interface DirectExportInterface extends ExportElementInterface
* *
* @return \Symfony\Component\HttpFoundation\Response * @return \Symfony\Component\HttpFoundation\Response
*/ */
public function generate(array $acl, array $data = []): Response; public function generate(array $acl, array $data = []);
/** /**
* authorized role * authorized role
* *
* @return \Symfony\Component\Security\Core\Role\Role * @return \Symfony\Component\Security\Core\Role\Role
*/ */
public function requiredRole(): Role; public function requiredRole();
} }