本文介绍了PhpStorm:如何从PhpStorm当前不支持的PECL库中添加方法存根?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PhpStorm有此处的各种编译时库中的方法存根列表.自动完成开发.

PhpStorm has a list of method stubs from various compile-time libraries here that it will use for autocompletion in development.

我目前在此处有 PHP AMQP PECL扩展的存根列表存根列表我想添加到我的PhpStorm版本中以获得该库的自动完成功能.

I currently have a list of stubs for the PHP AMQP PECL extension here that I would like to add to my PhpStorm build to get autocompletion for that library.

有什么办法吗?

推荐答案

只需将此类存根文件放置在项目中的任何位置(或以任何其他受支持的方式引用,例如Settings | Languages & Frameworks | PHP | Include path)-IDE将使用它.仅出于代码完成(和类似)目的(因此您可以将其从上载/VCS等中排除).

Just place such stub file(s) anywhere in your project (or reference in any other supported way, e.g. as Settings | Languages & Frameworks | PHP | Include path) -- IDE will use it for code completion (and similar) purposes only (so you can exclude them from uploading/VCS etc).

从长远来看,您可以将PR提交到已经提到的 PhpStorm存根存储库和它可能会在下一版本中成为标准PhpStorm发行版的一部分.

In long term -- you may submit the PR to the already mentioned PhpStorm stubs repository and it may become part of the standard PhpStorm distribution on next release.

这篇关于PhpStorm:如何从PhpStorm当前不支持的PECL库中添加方法存根?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 11:41