Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,6 @@ parameters:
count: 1
path: src/lib/Content/View/Builder/ContentEditViewBuilder.php

-
message: '#^Method Ibexa\\ContentForms\\Content\\View\\ContentEditView\:\:getForm\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#'
identifier: missingType.generics
count: 1
path: src/lib/Content/View/ContentEditView.php

-
message: '#^Method Ibexa\\ContentForms\\Content\\View\\ContentEditView\:\:setForm\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#'
identifier: missingType.generics
count: 1
path: src/lib/Content/View/ContentEditView.php

-
message: '#^Access to protected property Ibexa\\Contracts\\ContentForms\\Data\\Content\\FieldData\:\:\$fieldDefinition\.$#'
identifier: property.protected
Expand Down
8 changes: 7 additions & 1 deletion src/lib/Content/View/ContentEditView.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Ibexa\Core\MVC\Symfony\View\LocationValueView;
use Symfony\Component\Form\FormInterface;

final class ContentEditView extends BaseView implements ContentValueView, LocationValueView
class ContentEditView extends BaseView implements ContentValueView, LocationValueView
{
private Content $content;

Expand Down Expand Up @@ -57,11 +57,17 @@ public function setLanguage(Language $language): void
$this->language = $language;
}

/**
* @return \Symfony\Component\Form\FormInterface<mixed>
*/
public function getForm(): FormInterface
{
return $this->form;
}

/**
* @param \Symfony\Component\Form\FormInterface<mixed> $form
*/
public function setForm(FormInterface $form): void
{
$this->form = $form;
Expand Down
Loading