Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57391 invoked from network); 18 Dec 2016 11:03:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2016 11:03:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-lf0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:35387] helo=mail-lf0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/92-27550-E0D66585 for ; Sun, 18 Dec 2016 06:03:44 -0500 Received: by mail-lf0-f49.google.com with SMTP id b14so36520798lfg.2 for ; Sun, 18 Dec 2016 03:03:42 -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=i9/G3Slhe7bRRC/npCeI+YPVaE/rNhJwAX4x5pDMt2w=; b=R/zT4+ZsVAaHTUH9DXYWkxEQW2dAy3I8AERLceHxYK2JelBFNPQavYpbjy5YQ6OWpC 9HCLOl7UKKBZk/2oYVbQb443Ps1JNNtEPX8aBWmYPdn+/pjeemLw8ouuqWXgjZl++cr8 9L0cJNsQNg3C1/EQJos6Gn8FA149TCPOMIBv1Mgfg6QaO/OoBqUAnzS2kpBiQaKsKdhx E7ZovMpM3gpP0I2tal1igVCbB0ZGFvcXhAqLrOWs70e4oHrlpsZt7a2otN7cP3Q8PYRI xNzyeQpTPg9ZDOioGaLlDAeaHDUKGOCNicfhdHGnIamStzlwaLbhgMoVTRuN3LM+GT3b 78MQ== 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=i9/G3Slhe7bRRC/npCeI+YPVaE/rNhJwAX4x5pDMt2w=; b=t2n84C9XoVdGBjKSghGOOgyES3PmO0Kp44GWtq8u656GAiXsWrpRAOtPNCxCFo7xHV h2j6TPJj5ODiQaPwGRrnYy0bi+7sAw5C+TLYDh+dUAKYlN++SYAnzoCKJ5Nap+9d/dJT kcdeelUI4GXX52WnP2LiFKV1k5gXisgKAnzO+AupZxBmssTm5aa3+Ch7w/PH665oVgpO oYlp4Vaur15nY65D3nEf2pwSX+QR/y+n9IVid48VJbsJrT9lCKtFJEyRCUnGtbUyZTeA dw3+f3/DJq+lAFdjOOQDEqB27fIWgLeBl6hzqTGxz5Aanb7+tW9pyJHfpKU3UPeeZDra rYWw== X-Gm-Message-State: AKaTC02ezq/o5td+LWBKSCyAosFyIuJL0YHu1AZtunse8IM6KBogfm4gZyZWAn+V84qiBo5Irw66Dwzi7oKnZA== X-Received: by 10.25.44.145 with SMTP id s139mr3901721lfs.176.1482059019728; Sun, 18 Dec 2016 03:03:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.12.102 with HTTP; Sun, 18 Dec 2016 03:03:39 -0800 (PST) In-Reply-To: References: Date: Sun, 18 Dec 2016 12:03:39 +0100 Message-ID: To: Marco Pivetta Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a1141021c683dbf0543ecc10b Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Throwables error code's type generalization From: netmo.php@gmail.com (Wes) --001a1141021c683dbf0543ecc10b Content-Type: text/plain; charset=UTF-8 Will be nice to have regardless if PHP gets stuff like enums. It's not just a dirty fix. Strictly speaking it is not a BC change because `int` is not actually enforced at all. Also this would be a problem in other languages... function bar(): int{ mixed $code = (new MyException)->getCode(); return $code; } ...but in PHP, as long MyException->getCode() continues to return `int`, there would be no actual BC break. But if you think it'll be necessary I'll require 2/3 of the votes. \o --001a1141021c683dbf0543ecc10b--