Completion doesn't work in static functions #7

Closed
opened 2 years ago by hugo · 0 comments
hugo commented 2 years ago
Owner

example:

    public static function dump(iterable $dirs, string $file): void
    {
        $maps = array();

        foreach ($dirs as $dir) {
            $maps = array_merge($maps, static::createMap($dir));
        }

        file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)));
    }
example: ```php public static function dump(iterable $dirs, string $file): void { $maps = array(); foreach ($dirs as $dir) { $maps = array_merge($maps, static::createMap($dir)); } file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true))); } ```
hugo changed title from Variable completion doesn't work in static functions to Completion doesn't work in static functions 2 years ago
hugo added this to the Ready for fieldtesting milestone 2 years ago
hugo closed this issue 8 months ago
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hugo/phpinspect.el#7
Loading…
There is no content yet.