Re: [RFC] Keep type of reference params

From: Date: Mon, 04 May 2020 13:01:44 +0000
Subject: Re: [RFC] Keep type of reference params
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-109988@lists.php.net to get a copy of this message
This would break quite a lot of existing code, though PHP could add an explicit keyword like "inout" that catches this behaviour (see example in Hack: https://docs.hhvm.com/hack/functions/inout-parameters). Today these issues can also be caught with static analysis: https://psalm.dev/r/1f670956ab

« previous php.internals (#109988) next »