Skip to content

Commit

Permalink
Merge pull request #3362 from insiders/event-response
Browse files Browse the repository at this point in the history
[AdminListBundle] Fix response return type
  • Loading branch information
acrobat committed Mar 25, 2024
2 parents 3e57471 + 4cb47ba commit 16b52b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kunstmaan/AdminListBundle/Event/AdminListEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class AdminListEvent extends Event
protected $request;

/**
* @var Response
* @var Response|null
*/
protected $response;

Expand Down Expand Up @@ -54,7 +54,7 @@ public function getForm(): ?FormInterface
return $this->form;
}

public function getResponse(): Response
public function getResponse(): ?Response
{
return $this->response;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function testGetSet()
$this->assertInstanceOf(Form::class, $event->getForm());
$this->assertInstanceOf(\DateTime::class, $event->getEntity());
$this->assertInstanceOf(Request::class, $event->getRequest());
$this->assertNull($event->getResponse());

$event->setResponse(new Response());

Expand Down

0 comments on commit 16b52b1

Please sign in to comment.