PhpStorm ignores module failure

I am currently working on an old project that requires a switch to PHP 5.5 from 5.3

I found out that it is possible for PhpStorm to detect all obsolete function calls within the project (according to Find all obsolete usage in the project ) and to some extent seems to work very well.

However , it does not seem to place the legacy mysql method calls (which we have quite a lot) now. At first I thought it was a problem with the PHP version, but I checked the settings and PhpStorm is configured to use 5.5

The only thing I can find to explain this is that when I press Ctrl + click on the mysql function, the phpDoc block for this method does not have the @deprecated attribute.

/**
 * (PHP 4, PHP 5)<br/>
 * Close MySQL connection
 * @link http://php.net/manual/en/function.mysql-close.php
 * @param resource $link_identifier [optional] 
 * @return bool true on success or false on failure.
 */
function mysql_close ($link_identifier = null) {}

:

// Start of mysql v.1.0
// @deprecated in 5.5 entire extension is deprecated in favour of mysqli

PhpStorm , ?

. Mysql , , ?

+4
1

PhpStorm v9.0.2, mysql_, ( 9.0.2, 10 EAP).

8 @deprecated .

0

Source: https://habr.com/ru/post/1612717/


All Articles