About
PHP is a dynamic language. It does not have a type system (by default) and therefore, a variable stores any kind of value (if the type is not declared).
To overcome this situation, developers may create definition file known in PHP as stubs files containing the type and signature definitions.
These files are then used by IDE for code completion, code analysis.