thecodingmachine / mouf

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.
MIT License
54 stars 28 forks source link

distinguish between int and string parameters #96

Open nguyenk opened 9 years ago

nguyenk commented 9 years ago

Currently, mouf makes no distinction between integer and string types parameters. For instance :

/**
 * @param int $value 
*/
public function __construct($value){
    $this->value = $value;
}

The instance will have a string injected. Same problem occures whith interger / number.