Add type hints

[MAILPOET-1798]
This commit is contained in:
Pavel Dohnal
2020-02-06 13:51:19 +01:00
committed by Jack Kitterhing
parent 55da20c8ce
commit 4da5b2e5c4
2 changed files with 5 additions and 2 deletions

View File

@ -102,7 +102,7 @@ class FormEntity {
$this->styles = $styles; $this->styles = $styles;
} }
public function toArray() { public function toArray(): array {
return [ return [
'id' => $this->getId(), 'id' => $this->getId(),
'name' => $this->getName(), 'name' => $this->getName(),

View File

@ -18,7 +18,10 @@ class FormsRepository extends Repository {
return FormEntity::class; return FormEntity::class;
} }
public function findAllNotDeleted() { /**
* @return FormEntity[]
*/
public function findAllNotDeleted(): array {
return $this->entityManager return $this->entityManager
->createQueryBuilder() ->createQueryBuilder()
->select('f') ->select('f')