Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97152 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72260 invoked from network); 23 Nov 2016 21:50:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2016 21:50:47 -0000 Authentication-Results: pb1.pair.com header.from=daniel@honestempire.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=daniel@honestempire.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain honestempire.com designates 66.111.4.29 as permitted sender) X-PHP-List-Original-Sender: daniel@honestempire.com X-Host-Fingerprint: 66.111.4.29 out5-smtp.messagingengine.com Received: from [66.111.4.29] ([66.111.4.29:42438] helo=out5-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/68-05808-53F06385 for ; Wed, 23 Nov 2016 16:50:46 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A6B1221F46 for ; Wed, 23 Nov 2016 16:50:42 -0500 (EST) Received: from web6 ([10.202.2.216]) by compute3.internal (MEProxy); Wed, 23 Nov 2016 16:50:42 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=honestempire.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=hrOGDp5jsw8oHCf8ZNtoqCJ2sB 0=; b=2PNE5sjZ4MDMGJYeb33MHd7NqVsvlNP7kWRTFDC4lKomjmhlvDKhw2PHgn TGbCMASBqomVs0vs7c90xleb6tiSyYze7ZxNQqMLLqsNniKve1PjGNNLSWuPkRi8 UMhsV1WMycsxDJaE41E4CSTOX1FmaMDNYo8tqwBk/wrA5jFAA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=hr OGDp5jsw8oHCf8ZNtoqCJ2sB0=; b=ZtzSZfcd7HZeYiZiVYLg7kxqHGaLtBXE6e nexHPz7QKMu96AcAy1kvtY3F5tdE9IyMqt86klPiOObDRQPkxqOlGJoigDAOMqrP ln62TMpbzTY3QWubrXmpGcGXb4hh653KXNUtnLAdZJQuNHM8FeYJLGSXjTunP4OP Xs7WT2XKA= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 708DE55ED; Wed, 23 Nov 2016 16:50:42 -0500 (EST) Message-ID: <1479937842.492445.797468489.50B845FF@webmail.messagingengine.com> To: internals@lists.php.net MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-4bd131dc In-Reply-To: <8a5d4ed8-9b5c-c262-9980-501d07351b51@gmail.com> References: <8a5d4ed8-9b5c-c262-9980-501d07351b51@gmail.com> Date: Wed, 23 Nov 2016 21:50:42 +0000 Subject: Re: [PHP-DEV] Countable Type Hint From: daniel@honestempire.com (Daniel Morris) 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