- π¬π§United Kingdom alexpott πͺπΊπ
Are we sure about this change? There is a PHP class \DOMXPath. I'm not sure that this is a good rule to implement in core for two reasons.
- PHP does not care about case for method names. If a class has a method getXPath() and I call getxpath() it'll work just fine.
- We might be forcing developers to make bad choices for no reason. For example, say you work for the BBC and you implementing a method getBBCListing() - there is probably a corporate standard that says BBC must always be capitalised but our coding standards prevent that. I'm not saying I particularly like the method name getBBCListing() but I'm not sure that our coding standards should have an opinion. Also if you are extending PHP's classes you have things like \DOMNode::C14N and \DOMNode::C14NFile.
Re-posting from a sub issue.