[SOLVED] No more suggestions for magic constants

Hi there!

After update phpStorm to 2017.1 no more suggestions for magic PHP constants __LINE__, __FILE__, __FUNCTION__, __METHOD__, __CLASS__ ans so on.

How to fix?

 

 

0

Hi there,

Seems to work fine here:

Please try "File | Invalidate Caches..." and restart IDE

1
Avatar
Permanently deleted user

Seems to do not work for me:

 

>> Please try "File | Invalidate Caches..." and restart IDE

Does not help for me.

0

1) What will you see if you type "__L"  or "__LI" ?

2) If you type it manually -- will IDE complain about it in any way (e.g. unknown constant)?

3) Where it will take you (what file) if you will Ctrl+Click on it?

4) Maybe you are using custom stubs? What do you have in "Settings/Preferences | Languages & Frameworks | PHP |  PHP Runtime"? (Assuming that you are using latest 2017.1.2 version)

5) Does it work in brand new project?

6) Will it behave any different if you disable all non-bundled by default plugins?

 

0
Avatar
Permanently deleted user

Thanks @Andriy Bazanov !

I checked this settings ("Settings/Preferences | Languages & Frameworks | PHP | PHP Runtime") and see that all "PHP Runtime" options was disabled (unchecked). After enable this options everything began to work as it should be. It's very strange why these options turned off when the IDE was updated.

Thanks again!

0

请先登录再写评论。