[PHP-DEV] Re: [RFC] Nullable Casting

2019-04-21 Thread David Rodrigues
Discussion topic: - Not 100% needed: is the same that says "nullable typehint is not 100% need because we can just check in time". This argument has no sense, once that PHP supports nullable casting for parameters typehint, and the nullable casting is just a way to fit the argument to parameter

[PHP-DEV] Re: [RFC] Nullable Casting

2019-04-21 Thread Guilliam Xavier
On Sat, Apr 6, 2019 at 9:52 AM Guilliam Xavier wrote: > > Hello internals, > > David and I would like to open the discussion on our joint RFC: > > https://wiki.php.net/rfc/nullable-casting > > Mainly, it would enable to use e.g. `(?int)$x` besides `(int)$x`. > > We are looking forward to your