Req #71268 [Opn->Wfx]: Adding variable type key words: variant, object, void

From: Date: Mon, 04 Jan 2016 01:02:53 +0000
Subject: Req #71268 [Opn->Wfx]: Adding variable type key words: variant, object, void
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198388@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71268&edit=1 ID: 71268 Updated by: requinix@php.net Reported by: furun at arcor dot de Summary: Adding variable type key words: variant, object, void -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: *Programming Data Structures +Package: Variables related Operating System: Win7 XAMPP PHP Version: 7.0.1 Block user comment: N Private report: N New Comment: "variant" is the same as not using a hint. "object" doesn't say much: have a class/interface hint or don't use one at all. "void" was added in 7.1. https://wiki.php.net/rfc/void_return_type Previous Comments: ------------------------------------------------------------------------ [2016-01-03 17:21:31] furun at arcor dot de Description: ------------ It would improve explicitly to add the key words "variant" (for function parameter/return variable type, for any type), "object" (for function parameter/return variable type), "void" (for function return variable type) function Example (variant var1) : void { return; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71268&edit=1

« previous php.bugs (#198388) next »