Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66445 invoked from network); 10 Jun 2016 14:42:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 14:42:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.213.51 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.213.51 mail-vk0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:33038] helo=mail-vk0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/33-50092-BD1DA575 for ; Fri, 10 Jun 2016 10:42:35 -0400 Received: by mail-vk0-f51.google.com with SMTP id d64so100263070vkb.0 for ; Fri, 10 Jun 2016 07:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=p0CZwqgo8WnHIyiAd2rx87KigoBP3e2e12lsnxUN9mU=; b=pMNkKbKxFj/sNlfjIj73zBG64UowgiEBz1TxUwmqw/FJPWDm58ScQAJqj9jSPdUw4g EPaREKGHQg4+xJe3wOPj/DXb2nkubKxjsShZJwJZ061R0MdrBrz1QU+3v0SY98WaYq1L 0WH3TkWCJ+rj3ylw+xpIhEEnYFxpBZQjQ1V6Jttiv5qotjoPhaC78BNdpeV4vwT904Gz jF7vMR8mINQucuKHptUoDG8+03TdBsW0hYkVk4B5zZ9kubCrCHoXvhmwmxAfXCWUjZRs ryTTjPDyzX0+dcOyqgM8KZFJea+/Ni4LE6fyHzTK1EpXQV+6IVgbpl+KQaOJXuXy7uKZ iSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=p0CZwqgo8WnHIyiAd2rx87KigoBP3e2e12lsnxUN9mU=; b=Il+/mivPWRIzR2BKlJHOa2ntZY56CSIXHy9EGP9TBvnSei2P5W34xjysoC79qlKeIX S9IpelCt6huF6KTrjq5yuDQ/3wzlD2ecZbt2VgbuUA94KJ3T+CZ7MfEegU3m3kObCcrj ObcGi7MjOn6AGyj3lgBLrr3KDdOM3aS0mKotrTXkqwjbAEqt6iqK8rzt8to/7yviNeOQ Xgx/pdXIBPaIulyWrz/04TrZKUHvI6+rI48GVclcR7UUlyn1uFGWOJ8QWsX3KKUC9TaY rkwprOPje7hBADf+2uszs9t889rm6nxGEXKqX12wwWiZZH7+uJpnwzWCtuzbjVcJ6Xjp xH0A== X-Gm-Message-State: ALyK8tLmXxOccxjabWpEZko1d5vivlS/2uykqgOZk2TVQ1DlZYceZWoeULpsdC80Z6wG6gmXq6W0zf6KEQgqww== MIME-Version: 1.0 X-Received: by 10.31.178.18 with SMTP id b18mr982728vkf.84.1465569752415; Fri, 10 Jun 2016 07:42:32 -0700 (PDT) Received: by 10.103.47.199 with HTTP; Fri, 10 Jun 2016 07:42:32 -0700 (PDT) X-Originating-IP: [109.157.60.99] In-Reply-To: References: Date: Fri, 10 Jun 2016 15:42:32 +0100 Message-ID: To: Bob Weinand Cc: Niklas Keller , Marco Pivetta , Philip Sturgeon , PHP internals Content-Type: multipart/alternative; boundary=001a1143ebba7c9ac60534ed8c5c Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: pthreads@pthreads.org (Joe Watkins) --001a1143ebba7c9ac60534ed8c5c Content-Type: text/plain; charset=UTF-8 That's a bug ... that should throw ... Cheers Joe On Fri, Jun 10, 2016 at 3:12 PM, Bob Weinand wrote: > > Am 10.06.2016 um 16:00 schrieb Niklas Keller : > > 2016-06-10 15:50 GMT+02:00 Bob Weinand : > >> >> Am 10.6.2016 um 15:34 schrieb Niklas Keller : >> >> >> Top-posting, since I'm taking off now. >> >> From outside the class, properties are not visible at all, so their types >> are un-important from outer scopes. >> >> echo $foo->bar; is not the same in instance method body or outside of the >> class. >> >> From outside it works just fine and doesn't throw: >> https://3v4l.org/L8CqF/rfc#rfc-typed_properties >> >> >> This is an intermittent bug in the implementation. >> the RFC is explicitly mentioning that it should throw and throwing also >> is the correct behavior here. >> > > I don't think this is and should be a bug. I think it is the right > behavior if we choose to throw at all. > > > In this case a definite -1 on the RFC from me. I don't want "surprises" > regarding the type if a property is declared to return a certain type. > > Bob > --001a1143ebba7c9ac60534ed8c5c--