Re: Reflection to remove final
| From: | Marco Pivetta | Date: | Mon, 11 Aug 2014 10:42:16 +0000 |
| Subject: | Re: Reflection to remove final | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76421@lists.php.net to get a copy of this message | ||
Hi Tom,
On 9 August 2014 12:35, Tom Oram <tom@scl.co.uk> wrote:
> Thoughts?
>
Possible? Probably, yes.
I'd actually argue that it may not be a good solution: it seems to me that
if you have to resort to this kind of mocking, then someone type-hinted
against a concrete implementation, which is a smell. Shouldn't that be
fixed instead?
What particular use-case denies using an interface or abstract type instead?
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/