Re: [RFC] Alternative typehinting syntax for accessors
| From: | Patrick Schaaf | Date: | Sun, 06 Jan 2013 09:05:54 +0000 |
| Subject: | Re: [RFC] Alternative typehinting syntax for accessors | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64599@lists.php.net to get a copy of this message | ||
Was it considered to augment type hinting syntax - both in parameter lists
and for the hinted property RFC - to permit giving multiple types at once?
public DateTime|DateTimeImmutable $refdate;
public Foo|NULL $object; // the issue discussed in the previous msgs
function bar(array|string $arg) ...
best regards
Patrick