Skip to content

Commit

Permalink
Fix tests and nullsafe properties
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK committed Sep 24, 2024
1 parent 130a75b commit bbdf6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/Entity/HasEntityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ trait HasEntityTrait
{
protected $entity;

/**
* @param $entity
*/
public function setEntity($entity): void
{
$this->entity = $entity;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Psr7Trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*/
trait Psr7Trait
{
protected RequestInterface $request;
protected ResponseInterface $response;
protected ?RequestInterface $request = null;
protected ?ResponseInterface $response = null;

/**
* @deprecated See error
Expand Down

0 comments on commit bbdf6db

Please sign in to comment.