Ide 如何使PHPStorm按定义处理函数?
double_metaphone()函数是在PECL扩展中定义的,因此PHPStorm无法看到它被定义。我不想看到任何关于这方面的警告。我假设我可以让PHPStorm按照某种注释的定义来处理此函数调用,但我不知道如何实现这一点。您需要所谓的“存根文件”:Ide 如何使PHPStorm按定义处理函数?,ide,phpstorm,Ide,Phpstorm,double_metaphone()函数是在PECL扩展中定义的,因此PHPStorm无法看到它被定义。我不想看到任何关于这方面的警告。我假设我可以让PHPStorm按照某种注释的定义来处理此函数调用,但我不知道如何实现这一点。您需要所谓的“存根文件”: 创建一个.php文件,并将其放置在项目中的任何位置(无论是项目本身..还是作为一些外部库(设置| php |包含路径)--只要PhpStorm在此项目中可以看到它,这都无所谓 像在PHP中一样添加函数定义:描述所有参数、返回类型等。。只需将函数
.php
文件,并将其放置在项目中的任何位置(无论是项目本身..还是作为一些外部库(设置| php |包含路径)--只要PhpStorm在此项目中可以看到它,这都无所谓bin2hex
函数:
<?php
/**
* (PHP 4, PHP 5)<br/>
* Convert binary data into hexadecimal representation
* @link http://php.net/manual/en/function.bin2hex.php
* @param string $str <p>
* A character.
* </p>
* @return string the hexadecimal representation of the given string.
*/
function bin2hex ($str) {}