You need to make a stub file in PHP. Stub is a .php file with your classes/functions/constants/etc written in PHP -- just declaration part only (empty bodies) + PHPDoc.
PhpStorm does the same for all standard PHP core stuff/other extensions.
You can Ctrl+Click on any PHP core class/function and IDE will take you to the appropriate stub file. You can also browse all that stuff online: https://github.com/JetBrains/phpstorm-stubs
Hi there,
You need to make a stub file in PHP. Stub is a .php file with your classes/functions/constants/etc written in PHP -- just declaration part only (empty bodies) + PHPDoc.
PhpStorm does the same for all standard PHP core stuff/other extensions.
You can Ctrl+Click on any PHP core class/function and IDE will take you to the appropriate stub file. You can also browse all that stuff online: https://github.com/JetBrains/phpstorm-stubs
https://stackoverflow.com/a/15775431/783119