Skip to content

Commit

Permalink
Allo ApiRouteSpec::$description to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Mar 12, 2018
1 parent 7d8634f commit f22a4d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ApiRouteSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class ApiRouteSpec
{

/**
* @var string
* @var string|null
*/
protected $description;

Expand Down Expand Up @@ -99,13 +99,13 @@ public function __construct(array $data)
}


public function setDescription(string $description): void
public function setDescription(?string $description): void
{
$this->description = $description;
}


public function getDescription(): string
public function getDescription(): ?string
{
return $this->description;
}
Expand Down

0 comments on commit f22a4d3

Please sign in to comment.