Re: towards the next 5.3 release
| From: | Rob Richards | Date: | Wed, 04 Feb 2009 14:27:34 +0000 |
| Subject: | Re: towards the next 5.3 release | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42914@lists.php.net to get a copy of this message | ||
Sebastian Bergmann wrote:
Rob Richards wrote:RobThe addition in 5.2.6 was a BC break and is fixed in 5.2.9Removing the type-hint is only a short-term fix, IMHO. A better solution would be to introduce a marker interface that is implemented by the respective classes of the XML extensions involved and use said interface in the type hint. If that's the route this is going to go, I'd rather be able to set an anytype hint where the developer could possibly restrict this further with a more specific type if they extend the class.