Re: Callable typehint
From: Jaroslav Hanslik Date: Tue, 07 Jun 2011 15:22:54 +0000 Subject: Re: Callable typehint References: 1 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Dne 6.6.2011 21:41, Hannes Magnusson napsal(a):Hi As quickly mentioned in the '$arr = array('Hello', 'world'); $arr();' thread[1], we are hitting the need for a callable typehint. See attached patch+phpt; Any objections to include it in 5.4? -Hannes [1] http://php.markmail.org/message/gdas65h3im52slegI like the idea. However I think the type hint should be named "callback" instead of "callable" because this name is used already in a lot of documentations and also in PHP documentation http://php.net/manual/en/language.pseudo-types.php#language.types.callback Jaroslav Hanslik
Thread (63 messages)
« previous | php.internals (#53155) | next » |
---|