Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62230 invoked from network); 21 Sep 2016 16:35:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Sep 2016 16:35:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:35605] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/79-04117-7C6B2E75 for ; Wed, 21 Sep 2016 12:35:20 -0400 Received: by mail-wm0-f42.google.com with SMTP id l132so278303435wmf.0 for ; Wed, 21 Sep 2016 09:35:19 -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=BAUyDChNLcHlfm4+S0RCY904lB4XkEENyKrM7VkWSkE=; b=OaReg/vX99fL39NnGdZTgvANwvhRY1bJWvUIOYnSsCFDEdptjq1pBrcUqFyusmoIzX Jn//wyMRl0xD1DB7ZNv9rQTcVcRbWTGfpGlwT5NwriK5WSRL8kQJ6wtY9moU4aSgYq2o yKMnygJE8ygR+xp6E+iK/xjzwRu2V0VyXXz8MESp1tKdR0KRr55gI89/0nN/RhBSBTJp jHBnldDMNyyCbzKrYOdfVYDvnCob960ONdqR72j4IFZlARG/Mi18qulKZjT2p0Neoipc N5MCxh6sRatjhff8Epu3hyhLBaWCaU546TaYduozjSsYevAUHwIGUPF8EGjY/D9ZRrc5 Iftw== 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=BAUyDChNLcHlfm4+S0RCY904lB4XkEENyKrM7VkWSkE=; b=JT+idevt1lAaWBFQOXvPEbxxqVu/1GEEUR0/9smufG8OEOms8nyUOrrvpcEygWPuni BdUqumRUSuqC6B2u24P5bj05LkH2PSiahRyr0+aI0QpBNiDPZ2TCl5PU/+Gc9cwlrcq3 +BuRdmLOBSrY4AVwAaD/7PGS3YNbHMb5xheeVobDi8nq8hwtOkd5xJSV3NkVSP+ez1u1 q3Tw9ROHMeN1cS4edb50ACk5SSOcDiQe4pozViHfsCJneJFtoDHJtzbqgIFktq+3kEUf SRNdkMqWlpgj6ArOFHZwYJeZbU7K7N7wkZFXoeDPrCs+BocSrmFHPUEyXkpKljAkNBJE FgMA== X-Gm-Message-State: AE9vXwM+b61EjvbcxYeMK2omrd0iL8g/E3jDCHj76st6eQD8W3Zq2C360+cx/Q4rRTwgOBFKm8gDfAFvLyFIZQ== X-Received: by 10.194.157.193 with SMTP id wo1mr37014181wjb.22.1474475716901; Wed, 21 Sep 2016 09:35:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.234.105 with HTTP; Wed, 21 Sep 2016 09:34:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Sep 2016 18:34:56 +0200 Message-ID: To: Ryan Pallas Cc: Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0122ebce560177053d07215d Subject: Re: [PHP-DEV] Fix ReflectionType::__toString() BC break From: nicolas.grekas@gmail.com (Nicolas Grekas) --089e0122ebce560177053d07215d Content-Type: text/plain; charset=UTF-8 > > I'm not so sure its a BC though. Technically nullable types don't exist in > 7.0 and as such would be impossible to return said question mark. Its only > adding support for a new feature, not changing how an existing feature > works IMO. If nullable types had been in 7.0 its highly probably, that > __toString would have returned the leading question mark back then. > Here is the BC break: https://3v4l.org/VUbIS As light as it looks to be, the output on PHP7.1RC2 is not the same as in PHP7.0. Yet, __toString() is the only public interface that is available on PHP 7.0, so people have already built things on top. Nicolas p.s. to Nikita: my bad for the too short quote... --089e0122ebce560177053d07215d--