Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29490 invoked from network); 23 May 2017 22:50:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2017 22:50:15 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.181 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.223.181 mail-io0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:33669] helo=mail-io0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/04-10292-4ACB4295 for ; Tue, 23 May 2017 18:50:13 -0400 Received: by mail-io0-f181.google.com with SMTP id p24so107308559ioi.0 for ; Tue, 23 May 2017 15:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=G28LNUPcVvbp3QZs4juKXKaQRLot/rHyGsbDT6c6LEI=; b=nNnRIvxyvc/DBLkIaOyCWbo8KkgWoGroZZH98k3JziEXHwe/dlg7/cfEHidayauDHm F5FsEfSSA55xlFd9WaTARZVT3veGacRUloE76oMNjFPs1dHpHFW9Y+cNghM3QBn1UWx5 Q+2sunAzBl9xXGRH1D6cTTK9IvAjXN7YLfGw+BgCG2rbOgQCJiBpy4EJI9AudIYKbv/p QLBcD0eo1hCELI5aUJsVCklAAL6gjkUzZq0AEtosHRPfRYo382uaViLWc080yQAQE/zq OIBv7w+C9Wj5i9rNmOyz2FBB3iyDsFm+g5khn0smtD+x5FXrRb6e8CtjY/ZOXPpGmQDs jhDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=G28LNUPcVvbp3QZs4juKXKaQRLot/rHyGsbDT6c6LEI=; b=jPNAbi54yr5A5e70OwPEhRcjjEH9AGr3R54Mi7Y2CL5ceshvYVojPGT4OAUPntujuc fw/QY+zLVLmNVNTI7AhngBd0/faPyO98lYbPp2wk5AOvzNzX/wpBekVTP2CqcJYl1QuG nmMLkE187aE4c5xl880AE4J3fbVaSMYRfGwiiPrbSdmK7khFRyOOlao4Jtlp16ohcccJ qIs+QF6NNl9Dcgbjr8YXn533ViaMxaGL41B71d1DSGNMvilWuYS8RsEJSvDSV8KMjfrT OhraTfoVvovyS784lVnuXB03m0+DhHWP+2q2g4G93zP0yzQkuNcQzwid2ajghEVZ0qzX kYQw== X-Gm-Message-State: AODbwcDDAoJF/NgBA7fuL0FAoS7X1D8nCLmi1IS3FUzzlBQicR6QiQ6s yViwCjyTrYh6zW7sZTsM1QRgqIdfPw== X-Received: by 10.107.151.79 with SMTP id z76mr22718335iod.98.1495579810042; Tue, 23 May 2017 15:50:10 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.107.12.159 with HTTP; Tue, 23 May 2017 15:50:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 May 2017 16:50:09 -0600 X-Google-Sender-Auth: qGHJ3erMu7UXyfRpAaud5aQVRRA Message-ID: To: Rasmus Schultz Cc: PHP internals Content-Type: multipart/alternative; boundary="001a11409d844fcce3055038cf3a" Subject: Re: [PHP-DEV] Parameter type widening RFC From: levim@php.net (Levi Morrison) --001a11409d844fcce3055038cf3a Content-Type: text/plain; charset="UTF-8" On Tue, May 23, 2017 at 1:25 PM, Rasmus Schultz wrote: > > I feel like this feature takes a pretty dangerous shortcut by simply > removing a constraint check that we used to have - in favor of supporting a > few rare cases, we removed a guarantee that interfaces and the > implements-keyword has always provided. > > Those rare cases could have been supported in a safe manner by introducing > a "mixed" or "any" type, which would have made the use of this feature > explicit - which would have removed the risk of accidental omission of > type-hints in the majority of cases. > This was my opinion at voting time which is why i voted against the RFC. It passed 24 to 5 so it's just something we'll have to live with for now. --001a11409d844fcce3055038cf3a--