Add type hints
[MAILPOET-1798]
This commit is contained in:
committed by
Jack Kitterhing
parent
55da20c8ce
commit
4da5b2e5c4
@ -102,7 +102,7 @@ class FormEntity {
|
||||
$this->styles = $styles;
|
||||
}
|
||||
|
||||
public function toArray() {
|
||||
public function toArray(): array {
|
||||
return [
|
||||
'id' => $this->getId(),
|
||||
'name' => $this->getName(),
|
||||
|
@ -18,7 +18,10 @@ class FormsRepository extends Repository {
|
||||
return FormEntity::class;
|
||||
}
|
||||
|
||||
public function findAllNotDeleted() {
|
||||
/**
|
||||
* @return FormEntity[]
|
||||
*/
|
||||
public function findAllNotDeleted(): array {
|
||||
return $this->entityManager
|
||||
->createQueryBuilder()
|
||||
->select('f')
|
||||
|
Reference in New Issue
Block a user