On 2025-12-16 09:53, ignace nyamagana butera wrote:
Since we will be dealing with arrays the following rules could be
updated when parsing the string using PHP behaviour:
* "&a" should be converted to ['a' => null]
Hey Ignace,
In practice valueless arguments like `?debug` are most often "flags" or
"booleans" and their presence implies truthiness.
Do you think it would be wrong or confusing to have it converted to
`['debug' => true]`?
I'm worried that `['a' => null]` would not be that handy since both
`$params['a']` and `isset($params['a'])` would return falsy which would
likely be opposite to the intended value.
BR,
Juris