Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55618 invoked from network); 18 Dec 2016 10:49:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2016 10:49:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:36682] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/32-27550-5D966585 for ; Sun, 18 Dec 2016 05:49:57 -0500 Received: by mail-wm0-f47.google.com with SMTP id g23so71243283wme.1 for ; Sun, 18 Dec 2016 02:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BuodiQ3QWHc2eogeCr0QK6Ipi9IB5Dx+pNIJTmrgf2U=; b=uuO9xB8ZFLVHTbWGxqTQZU5GhDXJtCK7HroBr6TNWFhc5JizZ+6xwL40Es8pPPUO2u HbgNOGwHHjpQykw4OAtgcxFfCYbWI1fMjkAzYIXoEn2w4OrlMyGEyWf4KFR8IvLSCOyF 4kqDg6KIJztOONwF5PkYr/poub0UzE0Xwa7Prdr8cVFeYQM2fCGJuK6z2VV1MVZt6YE1 oG7WZNKd5V5tuGjI4ReIUhuFD12BorB84fmu65h+GpHoY8UT80XCGRr7U0XuLpBk2Nkj kwA6KXCCLV/tbV1fFKnwHLCaKWtsxZ+HXFzVK2a9BMqEeQ2SZJ3fgADDuBj4OqDOGPnv hGSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BuodiQ3QWHc2eogeCr0QK6Ipi9IB5Dx+pNIJTmrgf2U=; b=Wq5icMdxmGgfM6+hIugM4yFle4kW/f9d+byDH+MVDVbE6THq+liMb0tqUVFtuImcs4 JbL7nogC0lLkg9GYYso0VGaZWEMYeddchXiqjbkwsAvhjbCiGidlLFY1yvTftBR7GKxH xj7sxSGmgqj24Fza0JN5ohTg0ZqtPVoZ3j7Qn8fOMBsz/wnwH9lo2Ho8Qg6kTizm/t3Z +WaBpmif8bFjREos8ua/aytDWM2pwXF7GTJDukXwdR633T4WtWVIZ/sYI8FpNCLEFGFH 8Om//FruThhCo56zOHxzSVccK3KlimvhhKU69H3k4EmtYOFsy5DOvFv+QZ+4jJPkkFB1 EJVQ== X-Gm-Message-State: AIkVDXLVJ2gq+3YoDTBq31hS604p2Ko9HaugtF4bm5T89ucSPzgl/TelNqIhx7KUtpFHNOCXZgrQ3pWInsS1Tw== X-Received: by 10.28.133.144 with SMTP id h138mr10466304wmd.12.1482058194059; Sun, 18 Dec 2016 02:49:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.173.106 with HTTP; Sun, 18 Dec 2016 02:49:52 -0800 (PST) Received: by 10.194.173.106 with HTTP; Sun, 18 Dec 2016 02:49:52 -0800 (PST) In-Reply-To: References: Date: Sun, 18 Dec 2016 11:49:52 +0100 Message-ID: To: Wes Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11443c743189610543ec908f Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Throwables error code's type generalization From: ocramius@gmail.com (Marco Pivetta) --001a11443c743189610543ec908f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fix one library or fix all of them: good luck with the second one. =F0=9F= =98=89 Anyway, the type change (on the property, in this case) can be applied to any interface change reducing return type strictness: it is a BC break. On 18 Dec 2016 11:47 a.m., "Wes" wrote: > Yo, Marco :P I don't need to add any contextual data, I'm just trying > improve consistency by formalizing what PHP already does. I think it's th= e > right way to fix this because I don't think changing PDO is ever going to > happen. You either special case PDO in your code or formalize the special > case so that it becomes the norm. Again, there is no actual formal type > restriction right now, existing code that assumes `int` is wrong, even if > it's not their fault. If you are making that assumption your code is brok= en > already. > --001a11443c743189610543ec908f--