This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
38
* @throws \PSFS\base\exception\FormException
39
*/
40
1
public static function staticAdminLogon($route = null)
41
{
42
1
if (file_exists(CONFIG_DIR . DIRECTORY_SEPARATOR . 'admins.json')) {
43
if ('login' !== Config::getInstance()->get('admin_login')) {
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.