Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98346 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32778 invoked from network); 23 Feb 2017 13:50:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2017 13:50:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.194 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.194 mail-wr0-f194.google.com Received: from [209.85.128.194] ([209.85.128.194:36653] helo=mail-wr0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/3C-11648-8A8EEA85 for ; Thu, 23 Feb 2017 08:50:34 -0500 Received: by mail-wr0-f194.google.com with SMTP id z61so3968700wrc.3 for ; Thu, 23 Feb 2017 05:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=v2ONqiwefCLDp55pBfv27MgD5g4G6QSQG5M592FH8Lw=; b=tWvMUAQZW0Tdjq4i2Yf000b9IVemPZflwEfXMRKGwdrqZF6dytZK9FvFwwYxnw9xjT 4zUi3gCQUnLGKhAnxKpRz2QJ7prDNNfNNEBT2yGS7n6Qc9kdx9qwpggYRQhJ8ytOBaRS YtoG/8r2Q6pLOxA0t/F0B37Y9kyGEZq7zsMAcOu/yI5CL226GkC+YRt37Ze/VGS9eu15 MwViKzKo+/+pUNEo1AGw+0GX2uVA/w5wKSEhqwh7ZLOWenIwsEXne6I54sjs7mDTvlB9 8vRh7y44Pk746dHzWCFCkKrw2b/fPMbHOVCOKTakxiLRqBKANp0S15LzloGAFnYWGtA0 BkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=v2ONqiwefCLDp55pBfv27MgD5g4G6QSQG5M592FH8Lw=; b=VKl/PT/hHWMh/PdMcDOEkNsUWKo3ihqfdS4emtnNhntWVGtmnGMyMAhYUFdn5e5cVn /tnG9YE9AtossxrQEZKiqQBHdYuxvP9ILjCs95UFq23vMink7p8UKQcPwSn7dL4OfjwI 86bQpr9kRXa2+oUV0Pe8m4qNuQJuKHqcEV04n1JSS2qKlC0PUC7uSjgAUKg0fffH8ALP l0C0UGtn+3fG08Q+DrUIJCZ47ECJu+AYM3Z8tNKWbKswj3VhpDIofGXctYt9SUc05XNO B5xdDvj8hMv6oG9xexBAa7ufijIF8BsyTEYozo4v1XuG2VHhjPX2GIjerJ+G+kmsHvHx vpRw== X-Gm-Message-State: AMke39nG1KU4DqVG2xAW/sx5dN8lau4VylrrN85Xjzh60q5GsC3dJx1cZIKpuuLT97MHeQ== X-Received: by 10.223.152.177 with SMTP id w46mr4462879wrb.72.1487857829268; Thu, 23 Feb 2017 05:50:29 -0800 (PST) Received: from [10.60.221.46] (188.29.164.55.threembb.co.uk. [188.29.164.55]) by smtp.gmail.com with ESMTPSA id h75sm6116064wrh.37.2017.02.23.05.50.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 05:50:28 -0800 (PST) Date: Thu, 23 Feb 2017 13:50:25 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,=?UTF-8?Q?Micha=C5=82?= Message-ID: <011257B7-C709-4652-909C-5F2B02B0A2E4@gmail.com> Subject: Re: [PHP-DEV] Nullable types and strict type-hinting with default null value From: rowan.collins@gmail.com (Rowan Collins) On 23 February 2017 09:15:27 GMT+00:00, "Micha=C5=82" wro= te: >And what about situation when someone is forcing=20 >declare(strict_types=3D1)? I think, it's really a good place to force=20 >proper types=2E Including nulls=2E strict_types controls the behaviour of *calling* functions, but the check = here would have to be when *defining* the function: it would give an error = that the function definition is invalid, like if you say function foo(int $= bar=3D'hello') Unless you had some other behaviour in mind? Regards, --=20 Rowan Collins [IMSoP]