Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt authored and StyleCIBot committed May 25, 2018
1 parent 4ade16a commit e222322
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Types/NullableType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

final class NullableType implements Type
{

/**
* @var Type|callable
*/
Expand All @@ -20,7 +19,7 @@ public function __construct(Type $type)
public function __invoke($value)
{
if ($value === null) {
return null;
return;
}

return ($this->type)($value);
Expand Down

0 comments on commit e222322

Please sign in to comment.