Details
-
Type:
Docs: Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.10.0, 1.10.1
-
Fix Version/s: 1.10.2
-
Component/s: None
-
Labels:None
-
Language:English
Description
Add a note explaining that with future namespacing, these classes could be renamed
to use reserved words Interface, Abstract. (OR called as such? Not entirely familiar with namespacing plans).
Is it now the case that the last part of ANY classname must not be a reserved word?
Um... there's already a note saying that they could be renamed in future versions. What more do you feel needs to be added, exactly?
The reason why the last segment cannot be Abstract or Interface is that when we change the following:
to use namespaces, a literal change will leave this:
namespace Zend\Controller\Request; abstract class Abstract { ... }which leaves that last segment as a reserved PHP keyword, leading to parse errors. We decided simply to pre-empt this and start naming new classes appropriately in preparation for a switch to namespaces.
namespace Zend\Controller\Request; abstract class Abstract { ... }