10000 dropping PhpStorm8 type class constant api workaround · Koc/idea-php-symfony2-plugin@e861f08 · GitHub
[go: up one dir, main page]

Skip to content

Commit e861f08

Browse files
committed
dropping PhpStorm8 type class constant api workaround
1 parent 3406b36 commit e861f08

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/fr/adrienbrault/idea/symfony2plugin/util/PhpTypeProviderUtil.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ public static String getResolvedParameter(@NotNull PhpIndex phpIndex, @NotNull S
7272
if(parameter.endsWith(".class")) {
7373
return parameter.substring(4, parameter.length() - 6);
7474
}
75-
76-
// PhpStorm8: #K#C\Class\Foo.
77-
// workaround since signature has empty type
78-
if(parameter.endsWith(".")) {
79-
return parameter.substring(4, parameter.length() - 1);
80-
}
8175
}
8276

8377
// #K#C\Class\Foo.property

tests/fr/adrienbrault/idea/symfony2plugin/tests/util/PhpTypeProviderUtilTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public String getTestDataPath() {
3131
* @see PhpTypeProviderUtil#getResolvedParameter
3232
*/
3333
public void testGetResolvedParameter() {
34-
assertEquals("\\Class\\Foo", PhpTypeProviderUtil.getResolvedParameter(PhpIndex.getInstance(getProject()), "#K#C\\Class\\Foo."));
3534
assertEquals("\\Class\\Foo", PhpTypeProviderUtil.getResolvedParameter(PhpIndex.getInstance(getProject()), "#K#C\\Class\\Foo.class"));
3635
}
3736

0 commit comments

Comments
 (0)
0