Re: [RFC] Optional typehint check for parameters
| From: | Zeljko Mitic | Date: | Tue, 17 Jul 2018 13:43:06 +0000 |
| Subject: | Re: [RFC] Optional typehint check for parameters | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102890@lists.php.net to get a copy of this message | ||
On Tue, Jul 17, 2018 at 3:39 PM Dan Ackroyd <danack@basereality.com> wrote:
> On 17 July 2018 at 13:08, Zeljko Mitic <mitke013@gmail.com> wrote:
> >
> > It won't help, preprocess.io doesn't remove typehints.
>
> It doesn't _currently_ remove parameter types.
>
> If you think this is an idea worth doing, you could write the
> functionality to do that.
>
> cheers
> Dan
>
To be honest, I did think of that after I replied. But then I saw one big
problem; autowiring containers like Symfony (which I use) will not work
anymore.
So this is definitely a no-go.