Re: Countable Type Hint

From: Date: Wed, 23 Nov 2016 21:50:42 +0000
Subject: Re: Countable Type Hint
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-97152@lists.php.net to get a copy of this message
If somehow the Countable type-hint can absorb primitives, another example I would like to see with similar behaviour is Serializable, the type-hint currently allows classes implementing the Serializable interface to be serialized, but primitives (which are serializeable) can not be serialized when passed to the same method or function. I'm sure there are more edge-cases like this also... -- Daniel Morris daniel@honestempire.com

« previous php.internals (#97152) next »