WoltLab/WCF — Issue #402: Namespace Syntax in phpdoc
Author: Torben-Brodt
Created: 2012-01-29 13:50:40+00:00
State: open

Can we please add a initional backslash to the class definition in the php comments.

In php code the backslash would be necessary. So also my IDE (phpstorm) does not find the correct classes for type safety.
I think that that it should look like this.

```diff
--- a/wcfsetup/install/files/lib/system/WCF.class.php
+++ b/wcfsetup/install/files/lib/system/WCF.class.php99
@@ -215,7 +215,7 @@ class WCF {
/**
* Returns the language object.
*
- * @return wcf\data\language\Language
+ * @return \wcf\data\language\Language
*/
public static final function getLanguage() {
return self::$languageObj;
```