Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95349 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99850 invoked from network); 21 Aug 2016 16:00:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2016 16:00:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.172 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.172 mail-pf0-f172.google.com Received: from [209.85.192.172] ([209.85.192.172:35081] helo=mail-pf0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/25-50790-020D9B75 for ; Sun, 21 Aug 2016 12:00:32 -0400 Received: by mail-pf0-f172.google.com with SMTP id x72so24075955pfd.2 for ; Sun, 21 Aug 2016 09:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AYV0oSlAcEwKB6vmMdvjdinjyJvcgz+CLgneLj69eis=; b=nPzdze6OhQCtqXXvndNqjYyKxypfvTYUMrFBYDr65a8sO0Trm2gjzGNXeQl/Y/l/kp YHQ6/FVnlJc9oDR0a3LTvCiTHUqLKlEPxhmUm39eof+RnSh3vX4Awy7MtEDSSy2hEzNj jkaiQGvYLEmU/8Rma9rKoPlEjtuB6Vb8LbP8z/5A4SYFvflzqRyUHobdP6pXdltSOCK1 97r5VWYJzVCjMwF2m2Fg2W8k/frD+MoPBeVtxoveU2EYNiFu/gUvQd78WXyXR84x+eve zI55dwOsTsEDMzMjz7vIz/+KMdbxHW/pGu89kzQ9GRXPex9MtRqWfDr+0u5fOhcSOvqZ 47Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=AYV0oSlAcEwKB6vmMdvjdinjyJvcgz+CLgneLj69eis=; b=OqZ1SI8qjJsrCrWcyZpxrPdmDMQjpPQu5IJ1XTJbDVauqQ99axnbOOEDI80WuJOor2 CoGG0kMSkVn4VbLcLpOWabzwEp1imYOhRgUoioajJCyJlWuazyY+ep7eo0V2hl1rfEdP jcpSlnz2ETfrpUXo9rtAllWHu/WTFUO4XW3CmrxNWgBAEOnznGH57pTDhR2Sd0On+4xJ ufuyiOTb6VVrOaJHO2Idorqg+665tos8sTecD6TXjRUqTB9/hjYNrwLEL1o4rrjOCt+L V4CqqB+SHp0i0VVxbgN58aYYczMzIbY4q393OZupS+nILHK5zp5EaopKepMN+bCAvEx7 LCOA== X-Gm-Message-State: AEkoouvsTPo/r9LjlR1GBWh7CcxXyN/Ic6k1hxlM1t4AL6TunO9x9QPTUROfQWacIw/W7y6I0wTMBNN5z2owDQ== X-Received: by 10.98.33.72 with SMTP id h69mr34094115pfh.28.1471795229688; Sun, 21 Aug 2016 09:00:29 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.66.24.42 with HTTP; Sun, 21 Aug 2016 09:00:28 -0700 (PDT) In-Reply-To: References: <0668D584-EE51-4932-85D7-01D8BF70E409@trowski.com> <15E198DD-FF66-475D-ABBC-54ECD2B6BF62@trowski.com> Date: Sun, 21 Aug 2016 10:00:28 -0600 X-Google-Sender-Auth: wS_lMkDebs186lFuzUc3Sa9gA_w Message-ID: To: Marco Pivetta Cc: Aaron Piotrowski , internals , Stanislav Malyshev Content-Type: multipart/alternative; boundary=001a113efdded913b6053a970787 Subject: Re: [PHP-DEV] ReflectionType::__toString() prepending \ to class names From: levim@php.net (Levi Morrison) --001a113efdded913b6053a970787 Content-Type: text/plain; charset=UTF-8 > > This is the ultimate point: if we don't prepend the question mark it will >> break code. >> > > This is the impedence here: `ReflectionType` is a *REFLECTION*, not a code > generator. Don't think of `ReflectionType#__toString()` as a way to > generate code: it is merely a string representation of the reflectoion. > This is the last I have to say on anything: You just proved the point. It's a *reflection* of what was written. If it's a nullable type then it needs a nullable reflection in the toString. --001a113efdded913b6053a970787--