note 114212 added to migration56.new-features
| From: | tr0y | Date: | Sat, 25 Jan 2014 07:02:54 +0000 |
| Subject: | note 114212 added to migration56.new-features | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198340@lists.php.net to get a copy of this message | ||
It is also possible ( in 5.6.0alpha ) to typehint the ...-operator
function foo (stdclass ... $inbound) {
var_dump($inbound);
}
// ok:
foo( (object)['foo' => 'bar'], (object)['bar' =>
'foo'] );
// fails:
foo( 1, 2, 3, 4 );
----
Server IP: 92.48.119.85
Probable Submitter: 5.147.68.205
----
Manual Page -- http://php.net/manual/en/migration56.new-features.php
Edit -- https://master.php.net/note/edit/114212
Del: integrated -- https://master.php.net/note/delete/114212/integrated
Del: useless -- https://master.php.net/note/delete/114212/useless
Del: bad code -- https://master.php.net/note/delete/114212/bad+code
Del: spam -- https://master.php.net/note/delete/114212/spam
Del: non-english -- https://master.php.net/note/delete/114212/non-english
Del: in docs -- https://master.php.net/note/delete/114212/in+docs
Del: other reasons-- https://master.php.net/note/delete/114212
Reject -- https://master.php.net/note/reject/114212
Search -- https://master.php.net/manage/user-notes.php