King2500 / idea-php-advanced-autocomplete

Plugin for PhpStorm IDE. Adds auto-completion support for various built-in PHP functions, where parameter is a string literal.
https://plugins.jetbrains.com/phpstorm/plugin/7276-php-advanced-autocomplete
MIT License
61 stars 7 forks source link

auto-completion for custom date functions? #19

Open voku opened 5 years ago

voku commented 5 years ago

Hi, I have something like the following code in a class and I wanted to ask if it's possible to have also auto-completion for this use-cases?

PS: thanks for this plugin :+1: :1st_place_medal:

<?php

/**
 * @param string $format
 *
 * @return false|string
 */
function date_format_2($format = 'Y-m-d') {
    return date($format, 1571962614);
}

echo date_format_2('Y-m-d');