Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76421 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10229 invoked from network); 11 Aug 2014 10:41:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2014 10:41:59 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.49 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.192.49 mail-qg0-f49.google.com Received: from [209.85.192.49] ([209.85.192.49:42787] helo=mail-qg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/E0-02984-6FD98E35 for ; Mon, 11 Aug 2014 06:41:59 -0400 Received: by mail-qg0-f49.google.com with SMTP id j107so8264095qga.22 for ; Mon, 11 Aug 2014 03:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=6AivC+lWjl4bUmmAwF/XrRG0SF3XrgJUu+D75JsEWxs=; b=Zm3cuZVzlEUKAvUgBTLvBPYKls3dDomq0qL2LLj0rfY1oxdIwmPyZW6uodPX7cxiuR EIACpPmtcnXhyloIS5eUvwtzxNm6FPvX2rVOILkmQsOFLuBgGWjOUilvFFIRk8xBhxP3 mDd29+gUH61NR/j571uLzlyJONXVG3rwG/xGIfg2YHk9SztEza1ZyBSQvHjb/6YQkOsq mSblFunX7DRUkYMuhLE//7fsH3/eWbCl9+112xzXkqrMqBiW/BZvZscnhT4OfCo7ApJx wdlrV/12WEs2zt2bPbg58XYSjdToWn5+v6116t9Yd1f81n247zzR1V2LcLPfJg5Hvoo8 op1w== X-Received: by 10.140.88.41 with SMTP id s38mr46091978qgd.73.1407753756975; Mon, 11 Aug 2014 03:42:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.18.230 with HTTP; Mon, 11 Aug 2014 03:42:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Aug 2014 12:42:16 +0200 Message-ID: To: Tom Oram Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c13e7e9dab5b050058366e Subject: Re: [PHP-DEV] Reflection to remove final From: ocramius@gmail.com (Marco Pivetta) --001a11c13e7e9dab5b050058366e Content-Type: text/plain; charset=UTF-8 Hi Tom, On 9 August 2014 12:35, Tom Oram 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/ --001a11c13e7e9dab5b050058366e--