Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18531 invoked from network); 21 Nov 2016 09:39:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2016 09:39:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.217 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.217 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.217] ([81.169.146.217:25297] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/96-65233-EC0C2385 for ; Mon, 21 Nov 2016 04:39:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1479721164; l=1893; s=domk; d=kelunik.com; h=Content-Type:To:Subject:Date:From:MIME-Version; bh=8fDhQJ3oW3tYsIRHV0A4aWvHo+Vc0368gFNIsRQkXvI=; b=zFgiA+Lo4fq9xGdmDDg81TZKP1tsZ/nBSRTNotWlsO44Y48rKzXrWWEkOOAEwXCo3/ /OgaLU+/q+NG7oED3SLbyKVrEHqzuoj6+i9sx7bQqiZJuQJ3IkROrb/zRpw3zipBMtkX vR9fY5t66juA3fHChpaG0P7eYau4d4ou5otrA= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3o6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f49.google.com ([74.125.82.49]) by smtp.strato.de (RZmta 39.9 AUTH) with ESMTPSA id D04ee9sAL9dO0ke (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Mon, 21 Nov 2016 10:39:24 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id g23so135877440wme.1 for ; Mon, 21 Nov 2016 01:39:24 -0800 (PST) X-Gm-Message-State: AKaTC03PuWmwxWv8Gu9bbeuaV6Y06bxgqzUEZsaL4OkhCQcSFtrfL4q7zFZn23a+lWA0eGdkUr2r0hWjjSEe1g== X-Received: by 10.28.149.135 with SMTP id x129mr14043870wmd.71.1479721164127; Mon, 21 Nov 2016 01:39:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.87.70 with HTTP; Mon, 21 Nov 2016 01:39:23 -0800 (PST) Date: Mon, 21 Nov 2016 10:39:23 +0100 X-Gmail-Original-Message-ID: Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a1148e3865b1f7c0541cc6e8a Subject: [RFC] Parameter No Type Variance From: me@kelunik.com (Niklas Keller) --001a1148e3865b1f7c0541cc6e8a Content-Type: text/plain; charset=UTF-8 Morning Internals, I'd like to announce a RFC to allow omitting the type declarations for parameters in subclasses: https://wiki.php.net/rfc/parameter-no-type-variance PHP doesn't currently allow variance for parameters as checking these for compatibility isn't possible on compile time. This limitation is caused by autoloading and doesn't allow widening the accepted parameters. This RFC proposes to allow ommiting the type entirely in a subclass, as dropping all parameter constraints is always valid according to the LSP principle. We already allow return types being added in subclasses. Your feedback is welcome. :-) Regards, Niklas --001a1148e3865b1f7c0541cc6e8a--