Skip to content

Commit 9d23a15

Browse files
authored
Merge pull request #326 from Haehnchen/feature/324
#324 Incompatibility with PhpStorm 2025.1: Replace BasicPhpDocStubElementTypes => PhpDocStubElementTypes
2 parents 39fc91e + fd1961f commit 9d23a15

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/de/espend/idea/php/annotation/completion/PhpAnnotationCompletionConfidence.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import com.intellij.psi.PsiWhiteSpace;
77
import com.intellij.util.ThreeState;
88
import com.jetbrains.php.lang.documentation.phpdoc.lexer.PhpDocTokenTypes;
9-
import com.jetbrains.php.lang.documentation.phpdoc.parser.BasicPhpDocStubElementTypes;
109
import com.jetbrains.php.lang.documentation.phpdoc.parser.PhpDocElementTypes;
10+
import com.jetbrains.php.lang.documentation.phpdoc.parser.PhpDocStubElementTypes;
1111
import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocComment;
1212
import com.jetbrains.php.lang.patterns.PhpPatterns;
1313
import com.jetbrains.php.lang.psi.PhpFile;
@@ -53,7 +53,7 @@ public ThreeState shouldSkipAutopopup(@NotNull PsiElement contextElement, @NotNu
5353
}
5454

5555
// @<|>
56-
if(PhpPatterns.psiElement(BasicPhpDocStubElementTypes.phpDocTag).accepts(context)) {
56+
if(PhpPatterns.psiElement(PhpDocStubElementTypes.phpDocTag).accepts(context)) {
5757
return ThreeState.NO;
5858
}
5959

src/main/java/de/espend/idea/php/annotation/pattern/AnnotationPattern.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import com.intellij.util.ProcessingContext;
1010
import com.jetbrains.php.lang.PhpLanguage;
1111
import com.jetbrains.php.lang.documentation.phpdoc.lexer.PhpDocTokenTypes;
12-
import com.jetbrains.php.lang.documentation.phpdoc.parser.BasicPhpDocStubElementTypes;
1312
import com.jetbrains.php.lang.documentation.phpdoc.parser.PhpDocElementTypes;
13+
import com.jetbrains.php.lang.documentation.phpdoc.parser.PhpDocStubElementTypes;
1414
import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocComment;
1515
import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocPsiElement;
1616
import com.jetbrains.php.lang.lexer.PhpTokenTypes;
@@ -76,7 +76,7 @@ public boolean accepts(@NotNull PsiElement psiElement, ProcessingContext process
7676

7777
)
7878
.inside(PlatformPatterns
79-
.psiElement(BasicPhpDocStubElementTypes.phpDocTag)
79+
.psiElement(PhpDocStubElementTypes.phpDocTag)
8080
)
8181
.withLanguage(PhpLanguage.INSTANCE);
8282
}
@@ -104,7 +104,7 @@ public static ElementPattern<PsiElement> getTextIdentifier() {
104104
.withParent(PlatformPatterns
105105
.psiElement(PhpDocElementTypes.phpDocAttributeList)
106106
.withParent(PlatformPatterns
107-
.psiElement(BasicPhpDocStubElementTypes.phpDocTag)
107+
.psiElement(PhpDocStubElementTypes.phpDocTag)
108108
)
109109
)
110110
);
@@ -146,7 +146,7 @@ public static PsiElementPattern.Capture<PsiElement> getDefaultPropertyValue() {
146146
.withParent(PlatformPatterns.psiElement(StringLiteralExpression.class).withParent(PlatformPatterns
147147
.psiElement(PhpDocElementTypes.phpDocAttributeList)
148148
.withParent(PlatformPatterns
149-
.psiElement(BasicPhpDocStubElementTypes.phpDocTag)
149+
.psiElement(PhpDocStubElementTypes.phpDocTag)
150150
)
151151
))
152152
.withLanguage(PhpLanguage.INSTANCE);
@@ -164,7 +164,7 @@ public static ElementPattern<StringLiteralExpression> getDefaultPropertyValueStr
164164
.withParent(PlatformPatterns
165165
.psiElement(PhpDocElementTypes.phpDocAttributeList)
166166
.withParent(PlatformPatterns
167-
.psiElement(BasicPhpDocStubElementTypes.phpDocTag)
167+
.psiElement(PhpDocStubElementTypes.phpDocTag)
168168
)
169169
)
170170
.withLanguage(PhpLanguage.INSTANCE);
@@ -182,7 +182,7 @@ public static ElementPattern<StringLiteralExpression> getPropertyValueString() {
182182
.withParent(PlatformPatterns
183183
.psiElement(PhpDocElementTypes.phpDocAttributeList)
184184
.withParent(PlatformPatterns
185-
.psiElement(BasicPhpDocStubElementTypes.phpDocTag)
185+
.psiElement(PhpDocStubElementTypes.phpDocTag)
186186
)
187187
)
188188
.withLanguage(PhpLanguage.INSTANCE);

0 commit comments

Comments
 (0)