Skip to content

Commit d66afbe

Browse files
committed
Address minor quality issues
1 parent 58159e4 commit d66afbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AbstractJsonEncoder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function initialize()
121121

122122
/**
123123
* Returns the current number of step in the encoder.
124-
* @return mixed The current step number as integer or null if the current state is not valid
124+
* @return int|null The current step number as integer or null if the current state is not valid
125125
*/
126126
public function key()
127127
{
@@ -266,9 +266,11 @@ protected function resolveValue($value)
266266
} elseif ($value instanceof \Closure) {
267267
$value = $value();
268268
} else {
269-
return $value;
269+
break;
270270
}
271271
} while (true);
272+
273+
return $value;
272274
}
273275

274276
/**

0 commit comments

Comments
 (0)