Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29486 invoked from network); 9 Jul 2016 15:03:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2016 15:03:45 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.181 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.181 mail-yw0-f181.google.com Received: from [209.85.161.181] ([209.85.161.181:36025] helo=mail-yw0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/2E-18622-05211875 for ; Sat, 09 Jul 2016 11:03:44 -0400 Received: by mail-yw0-f181.google.com with SMTP id b72so59889094ywa.3 for ; Sat, 09 Jul 2016 08:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2XOuTDePyAcySZ0wQrxRG6E8aDk3+9/sxFMJnjQyJVA=; b=L9IxAFTzGOLC1Y66Oncs4cP+jxl7nmx3v0pkK/8mvFRmBVQtU+yMhFpQtXHzHEo6Bo U4PIvrDY79tRzhMOvGzN009k1iCaKiZV0RLQ9ak8l0tqpiadaYUf77zUBiQ0rqt9jL5p HilUS2TMbzLk5zReCloo85MAS+zlzUFjeQGPqhQlVyW7ha0gYiq7CcjE+P1vPqTrMKCD jMQTZTKgD3D56+816//H4fcN2KOPjcF9AQZXXlU+YVo9gb/ctINDzUy96StQZnKlBU4R d6gJxlXv2sVjvKJTVey1Y+rhjVxWer7kXxpIYlFViDvQhRODJQoy24tap/S0OsxzPKvn c+Vg== 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:from:date :message-id:subject:to:cc; bh=2XOuTDePyAcySZ0wQrxRG6E8aDk3+9/sxFMJnjQyJVA=; b=Z2MkfbCr5uCuXQa+dToB3nOEKc6b5E13M/U2Jmim23LkiBfbmwA213tF074tcxAWmQ Wt4LWWdIud6qYhgnCNENvX2BIgdMqLHy1ME4vYxSjrOvmChi+6qysxGBt5F1RmuScjPw sHAM9dBIjTPkcP9nlK1sMZssiYDfGg2VVkv63nCdSSLHODGHvUkJKaD3rK0tFsM3p8T+ bgvxocDfsXFlxbT/XT/6ISBFMuwimrj05/HFC4Niq3iLciRj5u+HUcfZrDnKqs8V9f+0 KJgmj+83jmyQMVToXcD4NXjFKX8ipwESBooL+VoPBsnOtiOzdhYGqtA5v8WYws8pnM4T dw2g== X-Gm-Message-State: ALyK8tK9MAbsHGFQuE/GWjK3w18cYWJyMpq85qS2C+/vnbQbU8VnJvBew9Ewy0G1RV+NgwH18peguLNqkNbR0Q== X-Received: by 10.13.201.134 with SMTP id l128mr8276585ywd.93.1468076620730; Sat, 09 Jul 2016 08:03:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.129 with HTTP; Sat, 9 Jul 2016 08:03:40 -0700 (PDT) In-Reply-To: <60AC7828-990B-4B6D-A122-AB9C15C6DEAE@trowski.com> References: <60AC7828-990B-4B6D-A122-AB9C15C6DEAE@trowski.com> Date: Sat, 9 Jul 2016 17:03:40 +0200 Message-ID: To: Aaron Piotrowski Cc: Levi Morrison , internals , Joe Watkins , Davey Shafik Content-Type: multipart/alternative; boundary=001a114e630e7b54be0537353980 Subject: Re: [PHP-DEV] Re: [RFC][Vote] ReflectionType Improvements From: nikita.ppv@gmail.com (Nikita Popov) --001a114e630e7b54be0537353980 Content-Type: text/plain; charset=UTF-8 On Sat, Jul 9, 2016 at 4:16 PM, Aaron Piotrowski wrote: > > > > On Jul 9, 2016, at 8:17 AM, Levi Morrison wrote: > >> > > > > The final vote was 5 in favor and 8 against. This RFC has been rejected. > > > > While this RFC was rejected, ReflectionType::__toString() should still be > updated to include a ? for nullable types. This is a consequence of the > nullable types RFC. As mentioned in this RFC [1], the string representation > of ReflectionType should be a syntax-valid representation of the type. > Without adding ?, this will no longer be true. I do not view this as a BC > break. In fact, it is a BC break for PHPUnit, PHPSpec, and Mockery to not > make this change, as they currently depend on the string representation of > ReflectionType to generate code compatible with the parent class or > interface. > > Additionally, I propose adding a getName() method to ReflectionType that > returns only the name of the type, regardless of nullability. Casting > should not be required to get information from an object, but currently > this is the only way to get the type name from ReflectionType. Most other > reflection classes include a getName() method, this seems to have been an > oversight. > > Joe and Davey, what are your thoughts on this? > > Aaron Piotrowski > > [1] > https://wiki.php.net/rfc/reflectiontypeimprovements#backward_incompatible_changes > I agree with this suggestion. Nikita --001a114e630e7b54be0537353980--