Re: Introducing "Array Of" RFC

From: Date: Fri, 28 Feb 2014 08:11:20 +0000
Subject: Re: Introducing "Array Of" RFC
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hello List,

So, should we allow nulls in an arrayof-style type hint?
No. Null values (optional values) should be allowed within an nullable-arrayof-style type hint.
Compare:    function foo(Bar $baz = null)
and:    function foo(Bar $baz)
This is not the same syntax and null is not a type. cryptocompress

Thread (73 messages)

« previous php.internals (#72853) next »