Advanced MetaData + factory methods example?

Hi,

I tried to get the PHPSTORM_META defintions for defining factory methods to work in one of my projects, but it doesn't appear to be doing anything.

Is there a downloadable example project for it anywhere?

cheers
Dan

3 comments

Thanks Andriy,

I'd missed off the first \ on my class definitions so PHPStorm was looking for the classes as a sub-namespace of PHPSTORM_META which is why it couldn't find them.

Also it seems the MetaData was only picked up after re-opening a project.

cheers
Dan

0

Also it seems the MetaData was only picked up after re-opening a project.

I've also had the same impression -- it did not worked when I just created metadata file, but after re-opening the project it all started to work just fine.
0

Please sign in to leave a comment.