Skip to content

Commit

Permalink
make the wrapper's value a class reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Feb 5, 2024
1 parent a1154c2 commit 0e1a9c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.intellij.psi.PsiPolyVariantReferenceBase
import com.intellij.psi.ResolveResult
import com.jetbrains.php.PhpIndex
import com.jetbrains.php.lang.psi.resolve.types.PhpType
import org.nextras.orm.intellij.utils.OrmUtils
import org.nextras.orm.intellij.utils.PhpIndexUtils

class ModifierClassName(
Expand All @@ -17,7 +16,6 @@ class ModifierClassName(
val phpIndex = PhpIndex.getInstance(this.element.project)
val result = PhpIndexUtils.getByType(PhpType().add(fqnClass), phpIndex)
return result
.filter { OrmUtils.OrmClass.ENTITY.`is`(it, phpIndex) }
.map {
object : ResolveResult {
override fun getElement(): PsiElement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ModifierClassNameProvider : PsiReferenceProvider() {
PlatformPatterns.psiElement(PhpDocTokenTypes.DOC_IDENTIFIER).withText("1")
)
),
PlatformPatterns.psiElement(PhpDocTokenTypes.DOC_IDENTIFIER).withText("wrapper"),
)
)
.withLanguage(PhpLanguage.INSTANCE)
Expand Down

0 comments on commit 0e1a9c9

Please sign in to comment.