Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26487 invoked from network); 24 Oct 2016 07:19:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2016 07:19:46 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.162 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.162 vie01a-dmta-pe03-3.mx.upcmail.net Received: from [62.179.121.162] ([62.179.121.162:61595] helo=vie01a-dmta-pe03-3.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/69-28528-F06BD085 for ; Mon, 24 Oct 2016 03:19:44 -0400 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1byZXn-00085u-Ak for internals@lists.php.net; Mon, 24 Oct 2016 09:19:39 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id zKKd1t01B1CY7x901KKeMG; Mon, 24 Oct 2016 09:19:39 +0200 X-SourceIP: 213.47.8.56 Received: from mail02.home ([192.168.1.14] helo=[IPv6:::1]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1byZXk-0007bU-15 for internals@lists.php.net; Mon, 24 Oct 2016 09:19:37 +0200 To: internals@lists.php.net References: Message-ID: Date: Mon, 24 Oct 2016 09:19:39 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On 23.10.16 09:39, Michał Brzuchalski wrote: > I would like to initiate discussion for Object typehint RFC > https://wiki.php.net/rfc/object-typehint > > This feature is developed to provide missing functionality which is needed > and quite easy to introduce. > There are many people which I've talked about the benefits of this > functionality. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object type hint From: markus@fischer.name (Markus Fischer) Hi, On 23.10.16 09:39, Michał Brzuchalski wrote: > I would like to initiate discussion for Object typehint RFC > https://wiki.php.net/rfc/object-typehint > > This feature is developed to provide missing functionality which is needed > and quite easy to introduce. > There are many people which I've talked about the benefits of this > functionality. I just wished a few weeks ago I was able to typehint that. Actually I even tried just to lern it doesn't work. It's a unit test helper method to make a method on an object public, signature: protected function makeMethodPublic(object $obj, string $methodName): ReflectionMethod So, I can come up with exactly one (to me) useful case, but it's arguable not "that important" and I certainly wouldn't and didn't add an is_object check for this, so there goes my priority for it. thanks, - Marus