Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19610 invoked from network); 27 Sep 2011 05:12:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2011 05:12:05 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:33074] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/01-08680-22B518E4 for ; Tue, 27 Sep 2011 01:12:04 -0400 Received: by eyh6 with SMTP id 6so4115721eyh.29 for ; Mon, 26 Sep 2011 22:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2NccngEe+OmmD4BFwX0wHtdJrNE6Ia6xL2zFANREwN8=; b=opsBDDQH96VTplP/5pOolC9TJXLfGiBvYOQQh1qVLELhGdUgbvBngcrVYKmnCRM/Kz 7k/kU6aDe1tW+xiMiSDAQVxItsAF5uPyxw13A/LA5Vxh1zHO4xZvTjgHUKQwrAbVNVRK kdjqAp1LhzybUeZ31EX3T04yPG6PPRZp43n2w= MIME-Version: 1.0 Received: by 10.14.17.86 with SMTP id i62mr2449918eei.224.1317100318745; Mon, 26 Sep 2011 22:11:58 -0700 (PDT) Received: by 10.14.99.205 with HTTP; Mon, 26 Sep 2011 22:11:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Sep 2011 07:11:58 +0200 Message-ID: To: Ferenc Kovacs Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] required argument after an optional should make it required From: nikita.ppv@googlemail.com (Nikita Popov) One thing I noticed this *could* be useful for is allowing null values on typehinted arguments: function f(TypeHint $arg =3D null, $arg2); $arg can now be either instanceof TypeHint or null. (Just noting that it does influence behavior sometimes, not that this is relevant.) Nikita On Tue, Sep 27, 2011 at 1:43 AM, Ferenc Kovacs wrote: > Hi. > > I've just found a nice feature request in the bugtracker: > https://bugs.php.net/bug.php?id=3D53399 > > what do you think about it? > > -- > Ferenc Kov=E1cs > @Tyr43l - http://tyrael.hu > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >