Re: [RFC][Vote] Typed Properties

From: Date: Mon, 23 May 2016 13:55:18 +0000
Subject: Re: [RFC][Vote] Typed Properties
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-93448@lists.php.net to get a copy of this message
Yeah "float". It works :) ________________________________ From: Niklas Keller <me@kelunik.com> Sent: Monday, May 23, 2016 4:46:59 PM To: Dmitry Stogov; Joe Watkins; PHP internals; Phil Sturgeon Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties Dmitry Stogov <dmitry@zend.com<mailto:dmitry@zend.com>> schrieb am Mo., 23. Mai 2016 14:48: Should this work? <?php class C { public double $x; } $o = new C; $o->x = 5; ?> Currently this leads to PHP Fatal error: Uncaught TypeError: Typed property C::$x must be an instance of double, integer used in /home/dmitry/php/php-master/CGI-DEBUG/prop.php:6 Do you mean "float"? ________________________________________ From: Joe Watkins <pthreads@pthreads.org<mailto:pthreads@pthreads.org>> Sent: Friday, May 20, 2016 9:05:34 AM To: PHP internals; Phil Sturgeon Subject: [PHP-DEV] [RFC][Vote] Typed Properties Morning internals, Since we have our answer on nullable types, typed properties can now go to vote. https://wiki.php.net/rfc/typed-properties#vote Note that, support for nullability as RFC'd will be merged when the implementation for nullable_types is merged into master. Please participate. Cheers Joe -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.internals (#93448) next »