1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Make sure to return bool where necessary

This commit is contained in:
Matthew Brown 2016-06-29 10:57:02 -04:00
parent 50aff4bcb7
commit 59acb5cfb7

View File

@ -191,7 +191,7 @@ class ClassChecker implements StatementsSource
}
/**
* @return void
* @return bool
*/
public static function checkClassName(PhpParser\Node\Name $class_name, $namespace, array $aliased_classes, $file_name)
{
@ -201,7 +201,7 @@ class ClassChecker implements StatementsSource
$absolute_class = self::getAbsoluteClassFromName($class_name, $namespace, $aliased_classes);
self::checkAbsoluteClass($absolute_class, $class_name, $file_name);
return self::checkAbsoluteClass($absolute_class, $class_name, $file_name);
}
/**