Skip to content

Commit

Permalink
[ci] Sync return-type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 4, 2022
1 parent ce14523 commit b49350f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Internal/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ class Exporter
* @param int &$objectsCount
* @param bool &$valuesAreStatic
*
* @return array
*
* @throws NotInstantiableTypeException When a value cannot be serialized
*/
public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount, &$valuesAreStatic): array
public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount, &$valuesAreStatic)
{
$refs = $values;
foreach ($values as $k => $value) {
Expand Down Expand Up @@ -185,7 +187,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
return $values;
}

public static function export($value, string $indent = '')
public static function export($value, $indent = '')
{
switch (true) {
case \is_int($value) || \is_float($value): return var_export($value, true);
Expand Down

0 comments on commit b49350f

Please sign in to comment.