Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No suitable properties found #16

Open
7system7 opened this issue Sep 7, 2023 · 1 comment
Open

No suitable properties found #16

7system7 opened this issue Sep 7, 2023 · 1 comment

Comments

@7system7
Copy link

7system7 commented Sep 7, 2023

Firstly, thanks for this awesome extension. But sadly it does not work properly.

It says what is in this issue's title when my property's type is Doctrine\Common\Collections\Collection. But it does not work with array too.

Environment information

PhpStorm 2023.2.1
Build #PS-232.9559.64, built on August 25, 2023
Licensed to Laszlo Lang
Subscription is active until September 25, 2023.
Runtime version: 17.0.8+7-b1000.8 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.4.12-arch1-1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 32
Registry:
    undo.documentUndoLimit=1000
    debugger.watches.in.variables=false
    run.processes.with.pty=TRUE
    ide.experimental.ui=true

Non-Bundled Plugins:
    com.ruslanpolutsygan.adderremover (0.3.6)
    ...

Current Desktop: GNOME
@7system7
Copy link
Author

7system7 commented Sep 7, 2023

Ehh, lol. I figured out after I re-read the documentation what says:

methods for class properties based on annotated type.

So, it won't work w/o annotation, like this:

private Collection $deals;

this moditfication is needed for the recognization

/**
 * @var Collection|ArrayCollection
 */
private Collection $deals;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant