Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7786 invoked from network); 27 May 2016 17:48:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2016 17:48:49 -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 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:34998] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/1B-37127-08888475 for ; Fri, 27 May 2016 13:48:49 -0400 Received: by mail-wm0-f43.google.com with SMTP id a136so2082045wme.0 for ; Fri, 27 May 2016 10:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:from:date:to:message-id; bh=zM/3701ndWgluLotXv+scHru0YJ/25FGQ/QOjUuRlDo=; b=ebl6KChSHdWXhqBGE9Fdo2ACn0V2L2BmkgmTNed8Wq1OWRs9g6JYtr3rZPs5UX+tLC ySE63+temZn3+fnlsjV8tJEql9E9hn1yrnt0juKURYU/lgt6P20i/W6D9+K3xNGluS+n 6WGw+HxJjyWIhxF1TzpFkx8hFl4AwI2OQ8YNalUAtIdye44xI208meNX5ohbYBkqEiMM Wjw+15t5p/0z0gJA2JAuaUilMlogbY/6qxFasbJzE/ymfvjGVakbySn+s07jIQluua+m dx6SoIinCzhZly70qqwFZXuGsgp+bDQAJqR2iBbx0E+Aa1Ot+1jsd5qnkEOLTWu4mYCl eTIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:from:date:to:message-id; bh=zM/3701ndWgluLotXv+scHru0YJ/25FGQ/QOjUuRlDo=; b=Qp9SOjkVfhuvw4qB6tdXiryfLvOoXT9aoRWedCZBDxbg5t467O6VE7SLDEBkU9IXA/ la+KrGeVUZ1lu9NaYvXVSrZKVu0iaDQok2G+HcZElK1tQ0scweL6V7K1e5tDzTcw+cW6 yrEMkWHzuLEvvTatJru/Q4HvnM9xRTbsS1JA3bSRJ9zbqCBVDbGEiX+s3VDr4whkPGa6 uVcIsBzZLg5rlhSJBfWwBMmBhCO1lNrb/onapvTl5LfRd+PFxsks21OTFvsKpKjy19MS TqP99qiE7jVDTYUNFAma9n5h4GZg6x7+NrbpAZ9drBvR+afjT5Mm5mNdKekgyoJeIKvN +A+Q== X-Gm-Message-State: ALyK8tK50UqtKNi2oxr0QQ3mU7/7o4P7kaukRZKfqw52oNH3SK1Wcl1jsy8MZWsU6GfaGQ== X-Received: by 10.28.11.82 with SMTP id 79mr10252445wml.33.1464371326230; Fri, 27 May 2016 10:48:46 -0700 (PDT) Received: from [10.132.156.232] ([213.205.251.96]) by smtp.gmail.com with ESMTPSA id s196sm9678720wme.23.2016.05.27.10.48.45 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2016 10:48:45 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <5156d2d3-6c7b-b5d0-fdfd-9064d8fb1d58@fleshgrinder.com> References: <20160525215208.034FC1A801B3@dd1730.kasserver.com> <5fd54aa0-4fdf-c1e7-eae8-765aa89c8498@fleshgrinder.com> <08963b03-8394-6d62-4e5b-393f3fcb5647@fleshgrinder.com> <9e9db70d-d72d-d93e-0c81-18c2aa228618@gmail.com> <409002d8-b5e3-5990-7358-246adc7e3cab@fleshgrinder.com> <57474A08.80807@lsces.co.uk> <6f7403b6-bf22-a12b-dfb2-43fe82983e7d@fleshgrinder.com> <57474F9C.6080104@lsces.co.uk> <1733cfce-001b-1079-e929-88f7dde0f2dd@gmail.com> <57475F27.3090306@lsces.co.uk> <34edcbd1-2d6a-cd52-7bbb-c393ab62d32d@gmail.com> <574772BA.3030305@lsces.co.uk> <5748164C.7020803@lsces.co.uk> <5156d2d3-6c7b-b5d0-fdfd-9064d8fb1d58@fleshgrinder.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Fri, 27 May 2016 18:48:34 +0100 To: internals@lists.php.net Message-ID: <0B6AA77E-C201-4EC4-98DB-EED5436DCF69@gmail.com> Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: rowan.collins@gmail.com (Rowan Collins) On 27 May 2016 11:25:48 GMT+01:00, Fleshgrinder wrote: > if (isset($row['d'])) { > $o->d = new DateTime($row['d']); > } > >No need to assign null since it already is null by default and the >nullable hint will not result in any errors upon accessing it. Actually, that's one of the points up for discussion: should accessing the property when no assignment has been made raise an E_NOTICE, so that there is a difference between "?int $foo" and "?int $foo = null". Regards, -- Rowan Collins [IMSoP]