Re: [PHP-DEV] required argument after an optional should make it required

2011-10-15 Thread Stas Malyshev
Hi! On 9/26/11 4:43 PM, Ferenc Kovacs wrote: Hi. I've just found a nice feature request in the bugtracker: https://bugs.php.net/bug.php?id=53399 what do you think about it? I think the idea is good, however the patch seems too complicated. I do not think we need additional flag and not sure

Re: [PHP-DEV] required argument after an optional should make it required

2011-09-26 Thread Nikita Popov
One thing I noticed this *could* be useful for is allowing null values on typehinted arguments: function f(TypeHint $arg = null, $arg2); $arg can now be either instanceof TypeHint or null. (Just noting that it does influence behavior sometimes, not that this is relevant.) Nikita On Tue, Sep 27,

Re: [PHP-DEV] required argument after an optional should make it required

2011-09-26 Thread Laruence
Hi: +1 for this thanks 2011/9/27 Ferenc Kovacs : > Hi. > > I've just found a nice feature request in the bugtracker: > https://bugs.php.net/bug.php?id=53399 > > what do you think about it? > > -- > Ferenc Kovács > @Tyr43l - http://tyrael.hu > > -- > PHP Internals - PHP Runtime Development Mail

[PHP-DEV] required argument after an optional should make it required

2011-09-26 Thread Ferenc Kovacs
Hi. I've just found a nice feature request in the bugtracker: https://bugs.php.net/bug.php?id=53399 what do you think about it? -- Ferenc Kovács @Tyr43l - http://tyrael.hu -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php