Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35856 invoked from network); 23 Feb 2017 14:38:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2017 14:38:24 -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.215.52 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-lf0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:35620] helo=mail-lf0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/AC-11648-ED3FEA85 for ; Thu, 23 Feb 2017 09:38:24 -0500 Received: by mail-lf0-f52.google.com with SMTP id z127so17181650lfa.2 for ; Thu, 23 Feb 2017 06:38:22 -0800 (PST) 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:content-transfer-encoding; bh=AERRUsD9anQjmxRt+ghQwg8HhMCTdWyVgsUr5GtUMKY=; b=WraDcQuHWn8B8p5ysxodUU560wOSoAZLy9Wwj+x0b9eGcJ3gFBQdJbWWf3pUsAEHld aLlr96KWM0IZ5/+sBdv6HPLRjqa8nBeLEbfpbowushJwZIAFZfTl4NpBeG6vWwkjFlBD Xkfpkd2Wjfs4shBCD/y2UwCv+t6N9fPLcxrGm0PvCDDHsOfd+oj+tBkK/6aEP/F/poTi j8oMZhIbpi7EmvzFgIsjPWLEi05pXAZBF0JExWaMYZ70l+pjFzOx4DK/ofb+hiQjMYJy ivcNOpU4Efu8WRSR1BXMG7KXZ37cdPrUeMAmhAAMgPxhW6wN6Sf7kyZDDyJFyMqOpQAS jkTw== 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:content-transfer-encoding; bh=AERRUsD9anQjmxRt+ghQwg8HhMCTdWyVgsUr5GtUMKY=; b=gGoaOeZ+vTmizyL7fI8e2dZ1qkCylU4nRuGosEDko/mTgtD9qyP6ndSRp8N+7s+sho fX4bRojrayoS/aAzBYkodLLYM0C4qm0DCDuutN0bYpxTRDKlV52QBmLS/U2lHf5kXCKl mJn6kuqXdloces82GAddCZ7gtopiuDsiXOu33d1TceMgmdFJZMzGPyRUY4Y+Dk3UYHEY DH2YV9Y15T6d7eAzgfEdmMw7/2c1pJHOrU8/8oeioWGhemufkkDMcFgpvl1w+FQxxgYv BFDWhc87/1ILvT8g0ArfpGbQLt03JDpoyJBTxw+in6h1cWaUpSWXWPIqgnRh2f1ZawWP eE6Q== X-Gm-Message-State: AMke39mSS8M8yXzMRj20CZOsE6nU4ffuN6Gp+waUTlTJDYkn9FIJwmNodinAraPx35SFfXL1efBeURu3mWlTjA== X-Received: by 10.25.28.199 with SMTP id c190mr10813404lfc.173.1487860699601; Thu, 23 Feb 2017 06:38:19 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.25.151.139 with HTTP; Thu, 23 Feb 2017 06:38:19 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2017 07:38:19 -0700 X-Google-Sender-Auth: vJiYOtE3RY9SnQDmIgaEoQpwI0A Message-ID: To: =?UTF-8?Q?Micha=C5=82?= Cc: internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Nullable types and strict type-hinting with default null value From: levim@php.net (Levi Morrison) On Wed, Feb 22, 2017 at 2:18 PM, Micha=C5=82 wrote: > a(string $test=3Dnull) // incorrect type, should throw error > > There is no reason, except of backwards compatibility, to keep this > behaviour. It's too late to change this in 7.1, maybe even in 7.2. But, w= hat > is Your opinion? Should it be preserved or fixed? My opinion is that it is far too early to try to change it in any way. Maybe in PHP version 8.0 we could add an E_DEPRECATED or E_STRICT but it's far too early to do anything in the 7.X series.