Browse Source

Complete return of transform function

master
J. King 2 years ago
parent
commit
c2efad1f9b
  1. 4
      lib/Docopt.php

4
lib/Docopt.php

@ -167,7 +167,9 @@ class Docopt {
}
}
# return Either(*[Required(*e) for e in result])
return new Either(...$result); // FIXME: This is wrong, but I'm not sure what the Python line does, yet
return new Either(...array_map(function($e) {
return new Required(...$e);
}, $result));
}
}

Loading…
Cancel
Save