On Monday, October 15, 2018 at 4:23:46 PM UTC-5, Stefano Torresi wrote:
>
> Hey list,
> what if one wanted to hint to a varable number of arrays of DateInterval?
>
> e.g. `func(array ...$intervals) {}`
>
> Isn't this what `@param DateInterval[] ...$intervals` should actually be
> used for?
>
> Cheers
>
I had thought of this possibility soon after my original email... but was
self-throttling until today to bring it up :-D
I agree with Stefano, that this use case is feasible, and thus the syntax
needs to account for it.
So, the datatype part of the syntax represents a series of DateInterval
objects being passed individually, then `@param DateInterval ...$intervals`.
If it's actually a series of *arrays* that each contain DateInterval object
members, then `@param DateInterval[] ...$intervals` would signify that.
CRB
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/5153ca7a-be07-4e2c-a489-1ca23e866d50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.