Skip to content

Commit

Permalink
Fix useless method type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Jan 29, 2020
1 parent 82d4e2e commit fff1f65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Base/Generator/PhpDoc/PhpDocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public function addParamLine(string $name, string $type = '', string $descriptio
/**
* {@inheritDoc}
*/
public function addReturnLine(?string $line): void
public function addReturnLine(string $line): void
{
$this->addLine($line, static::TYPE_RETURN);
}

/**
* {@inheritDoc}
*/
public function addThrowsLine(?string $line): void
public function addThrowsLine(string $line): void
{
$this->addLine($line, static::TYPE_THROWS);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Base/Generator/PhpDoc/PhpDocGeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public function wrapLines(string $line, ?int $wrapOn = null): array;
public function hasSingleVarLine(): bool;

/**
* @param string|null $line
* @param string $line
*/
public function addReturnLine(?string $line): void;
public function addReturnLine(string $line): void;

/**
* @param string|null $line
* @param string $line
*/
public function addThrowsLine(?string $line): void;
public function addThrowsLine(string $line): void;

/**
* @return int
Expand Down

0 comments on commit fff1f65

Please sign in to comment.