Re: [RFC] Nullable Casting

From: Date: Wed, 10 Apr 2019 12:03:27 +0000
Subject: Re: [RFC] Nullable Casting
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-105203@lists.php.net to get a copy of this message
> > I'm a bit concerned that there are two possible semantics for what (?int) > does: There is only one, if we align the semantics of explicit and implicit casting: you wouldn't expect this: function test(?int $bar) { var_export($bar); } test("abc"); ...to output 'null'? -- Ben

« previous php.internals (#105203) next »