Re: [RFC Discussion] Typed Properties

From: Date: Fri, 18 Mar 2016 22:10:39 +0000
Subject: Re: [RFC Discussion] Typed Properties
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-91757@lists.php.net to get a copy of this message
Hi all, Am 16.03.2016 um 21:29 schrieb Fleshgrinder: > Another more complicated user case would be *mysqli_fetch_object* that > populates the properties with values from a storage but values that > should become something specific and strict at some point but are > initially populated as strings. Type coercion would be a nice thing here > but with strict checks afterwards. I really don't like the special way mysqli and PDO use here. Both should use the __set_state() magic method as would any userland code. But that is a discussion for another thread ;-) Greets Dennis

« previous php.internals (#91757) next »