Phpinspectionsea: Use the qualified reference > Allow to import function instead of backslash

Created on 23 Oct 2018  路  1Comment  路  Source: kalessil/phpinspectionsea

First of all, your plugin rocks! Saves my ass every day. Just put in an order for Ultimate. Thanks!

| Subject | Details |
| :------------- | :---------------------------------------------------------------------------- |
| Issue type | Feature request |
| Plugin | Php Inspections (EA Extended) v3.0.7 |
| Language level | PHP 7.2 |

Current behaviour (description/screenshot:)

screenshot 2018-10-23 at 15 02 37
screenshot 2018-10-23 at 15 02 51

if (3 !== \count($matches)) {
    return null;
}

Expected behaviour

use function count;

if (3 !== count($matches)) {
    return null;
}

Notes

I really like to import my functions instead of adding that ugly backslash. Would be great if the plugin offered an option, either just put the backslash, or import the function.

enhancement

Most helpful comment

Thank for a great feedback @ruudk, since we are going into the next stabilization round, I think it's time to finally implement this =)

>All comments

Thank for a great feedback @ruudk, since we are going into the next stabilization round, I think it's time to finally implement this =)

Was this page helpful?
0 / 5 - 0 ratings