Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99218 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74996 invoked from network); 28 May 2017 21:28:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2017 21:28:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.83.43 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.83.43 mail-pg0-f43.google.com Received: from [74.125.83.43] ([74.125.83.43:36085] helo=mail-pg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/70-03918-5014B295 for ; Sun, 28 May 2017 17:28:37 -0400 Received: by mail-pg0-f43.google.com with SMTP id x64so14244080pgd.3 for ; Sun, 28 May 2017 14:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g/X46snuPAlJLb7Dvi+SIMtF7Lq2PDpU0wG+J6G3ID0=; b=0uBpksif/z9emeYHmYBEY83UGIYkoitGHS1dZLX7/yXOB40eHSmIYbA1lvkwyJjrhQ 0FBBuVq1JIhHfBcJc50Fo+EwZm+3laYrGcOeBEAvUTEYA+uFdRug50ZDyXROVzS+irv0 QYcn1mlpAPSW5h4LnmMl1ZPuENQWa8YeiUiA8RCEiMgcMiIQcQlzZYCkOCNpV2BRQue9 96SeTuDROdmKAJ/zxzxrN+NYV41VXX3djqlBOLLYA68E7p3yMq6DRMf/dRn5s6r1kwF2 DdLUs74ahtYJxi92KcSxYNoVLPfIORnEbwDhTcp1grlzLL3WueSHNoHRwIkbhTNd1Kpg MVtQ== 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=g/X46snuPAlJLb7Dvi+SIMtF7Lq2PDpU0wG+J6G3ID0=; b=Je8JJvzCm1CZXbVPldN16w0i9Bw2Jc6vZN2J1PHyMTwwTkRpVpO3zEoa/zsL4wW9qK EdkuNlfSLP5ZRAiXHLd3WxZvBWKy5DFY18RcF2LOz7IQTVwPdgTXrAW6syT8OtaHaIEA zDOh8rZ2ygjRKxvm44XPdUPUvOTARHsTdXrMTfkcu5kIEodTbrAY9TnmuzDYcLenJ4X7 rZxXvqueYi+ysU0kVFE1v41PsPBFEME+PwuxRmy4rC1tY5J9GQSNUR9Oi9wv1H3Wrrp7 hXYi7rJZIo75Rw5byXiuShyYigOe+nKLjEl5hCtP6Z+usBA+rLOsMl3zsZxv76qtEe+N z8vA== X-Gm-Message-State: AODbwcD3cz1mwGwmyrEJ7hdSY/HbPKXSCyfAdtWjMGMc247BN54NU8Ep HBNGv8XrQYBHMpQ5sO/79C0SHs7cYmtD X-Received: by 10.98.86.207 with SMTP id h76mr13954736pfj.205.1496006914647; Sun, 28 May 2017 14:28:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.151.163 with HTTP; Sun, 28 May 2017 14:28:33 -0700 (PDT) X-Originating-IP: [77.99.17.151] In-Reply-To: References: <8de6a2ef-9602-e489-f19c-001005626b87@gmail.com> Date: Sun, 28 May 2017 22:28:33 +0100 Message-ID: To: Aidan Woods Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Parameter type widening RFC From: danack@basereality.com (Dan Ackroyd) On 28 May 2017 at 18:06, Aidan Woods wrote: > So, if I understand everything here correctly > ... > will be equivalent in 7.2? :( > Not equivalent. Adding the Boo param type to an implementation, when it is only a comment in the parent gives an error. interface Foo { /* * @param $Boo, pretty please accept type Boo here */ public function bar( $Boo); } class Zot implements Foo { public function bar(Boo $Boo) {} } Fatal error: Declaration of Zot::bar(Boo $Boo) must be compatible with Foo::bar($Boo) in %s on line %d cheers Dan