Skip to content

Multiple operands return null while options return empty array

Created by: tflori

snippet from a psy shell:

>>> GetOpt\Operand::create('test', GetOpt\Operand::MULTIPLE)->getValue()
=> null
>>> GetOpt\Option::create('t', 'test', GetOpt\GetOpt::MULTIPLE_ARGUMENT)->getValue()
=> []

I would say it is a bug but maybe someone has a different meaning?