Skip to content

Commit

Permalink
Address minor quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Riimu committed Jun 28, 2017
1 parent 58159e4 commit d66afbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AbstractJsonEncoder.php
Expand Up @@ -121,7 +121,7 @@ private function initialize()

/**
* Returns the current number of step in the encoder.
* @return mixed The current step number as integer or null if the current state is not valid
* @return int|null The current step number as integer or null if the current state is not valid
*/
public function key()
{
Expand Down Expand Up @@ -266,9 +266,11 @@ protected function resolveValue($value)
} elseif ($value instanceof \Closure) {
$value = $value();
} else {
return $value;
break;
}
} while (true);

return $value;
}

/**
Expand Down

0 comments on commit d66afbe

Please sign in to comment.