Search code examples
idephpstormphalconphpstorm-2017.1php-ide

PhpStorm 2017.1 shows ' undefined namespace Phalcon'


In PhpStorm 2017.1 version, I get the error - "undefined namespace Phalcon. Referenced namespace is not found". So I tried to include the Phalcon devtools. I included them and the 'External Liabraries' of the project Explorer found the name - Phalcon. Even I can load the project url and get output in browser. But the message still appears.

enter image description here

Another screenshot goes below to show the folder i selected in the include path. notice that under 'ide->Phpstorm', i do not see any other file or directory.

enter image description here

Other answers in SO use a back version of Phalcon devtools.

How can i remove the message and get PhpStorm handle Phalcon smartly ?


Solution

  • From Phalcon 3.1 stubs are available in separated repository - https://github.com/phalcon/ide-stubs