nirix / nanite

Simple "framework"
http://nirix.github.io/nanite/
62 stars 12 forks source link

change PHPDoc @param #4

Closed leotop closed 7 years ago

leotop commented 7 years ago

change

Undefined class function

The inspection can produce two types of warnings: Undefined class: Declaration of referenced class is not found in build-in library project files. Multiple declarations: this version of IDE will have problems with completion, member resolution and inheritance analysis for all classes that have multiple definitions in project files (regardless of includes).

leotop commented 7 years ago

files: functions.php Nanite.php

@param mixed Callback $function or @param callback $function ?

class Greeting {
    public static function hello() {
        echo 'hello world!';
    }
}

get('/123', array('Greeting', 'hello'));